-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
ACK_WAITINGissue to be reviewed and confirmedissue to be reviewed and confirmedUPDATE_TPissue is about updating a testability patternissue is about updating a testability pattern
Description
Testability pattern
JS pattern 48. It has only one instance.
Problem statement
There is a single pattern instance and it is not having a vulnerability. The expectation in that json file should be fixed. However, other changes could be proposed.
Proposed changes
The obstacle code seems to focus on a variable comparison where one of the variable a is attacker-controlled and b is a constant. However, this variable is strictly constrained to the constant when the dangerous operation is applied:
if(a === b){
//no vulnerability
res.write(a);
}
Multiple instances could then be created:
- considering either
==or=== - make the
writetargeting either the constrained attacker-controlled variableaor a different totally unconstrained attacker-controlled variable
Other
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ACK_WAITINGissue to be reviewed and confirmedissue to be reviewed and confirmedUPDATE_TPissue is about updating a testability patternissue is about updating a testability pattern