tsaekaoOrg / nodegoat

Apache License 2.0
0 stars 0 forks source link

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') [VID:95:app/routes/contributions.js:25] #6

Open veracode-workflow-app[bot] opened 5 months ago

veracode-workflow-app[bot] commented 5 months ago

https://github.com/tsaekaoOrg/nodegoat/blob/94315c5421ccfc8451501ccc4c679d6e99004688/app/routes/contributions.js#L20-L30

Filename: app/routes/contributions.js

Line: 25

CWE: 95 (Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'))

This call to eval() contains untrusted input or potentially untrusted data. If this input could be modified by an attacker, arbitrary JS code could be executed. Validate all untrusted and untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. In general, avoid executing code derived from untrusted input. References: CWE/nDon't know how to fix this? Don't know why this was reported?
Get Assistance from Veracode