The OWASP NodeGoat project provides an environment to learn how OWASP Top 10 security risks apply to web applications developed using Node.js and how to effectively address them.
Stored_XSS issue exists @ app/data/profile-dao.js in branch master
Method function at line 98 of app\data\profile-dao.js gets data from the database, for the user element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method profile.getByUserId at line 12 of app\routes\profile.js. This may enable a Stored Cross-Site-Scripting attack.
Stored_XSS issue exists @ app/data/profile-dao.js in branch master
Method function at line 98 of app\data\profile-dao.js gets data from the database, for the user element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method profile.getByUserId at line 12 of app\routes\profile.js. This may enable a Stored Cross-Site-Scripting attack.
Severity: High CWE:79 Vulnerability details and guidance Internal Guidance Lines: 98
Code (Line #98):