tsaekaoOrg / nodegoat

Apache License 2.0
0 stars 0 forks source link

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') ('Code Injection') [VID:3] #15

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

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

https://github.com/tsaekaoOrg/nodegoat/blob/1489ef89375ec079c565378a428682b440d73d28//app/routes/contributions.js#L21-L31

Filename: contributions.js

Line: 26

CWE: 95 (Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') ('Code 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