Files
☣️ Mr. The Plague ☣️andSquidSec Bot 31bd057301 test
Demo only — hardcoded secret + injection / dangerous API patterns.
See examples/README.md

Co-authored-by: SquidSec Bot <bot@squidsec.local>
2026-07-28 16:18:17 -04:00

15 lines
370 B
JavaScript

// SquidGate sample — JavaScript (intentional vulnerabilities for demo)
const API_KEY = "sk-live-js-demo-NOT-A-REAL-KEY-12345";
function getUser(id) {
// SQL injection via string concat
const q = "SELECT * FROM users WHERE id = " + id;
return db.query(q);
}
function run(code) {
return eval(code); // dangerous
}
module.exports = { getUser, run, API_KEY };