Skip to content

Commit

Permalink
Fix header injection vulnerability detection for access-control-allow…
Browse files Browse the repository at this point in the history
…-origin (#4844)
  • Loading branch information
CarlesDD authored and rochdev committed Nov 6, 2024
1 parent 50166a9 commit c50ad6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ describe('Header injection vulnerability', () => {
testDescription: 'should have HEADER_INJECTION vulnerability when ' +
'the header is "access-control-allow-origin" and the origin is not a header',
fn: (req, res) => {
setHeaderFunction('set-cookie', req.body.test, res)
setHeaderFunction('access-control-allow-origin', req.body.test, res)
},
vulnerability: 'HEADER_INJECTION',
makeRequest: (done, config) => {
Expand Down

0 comments on commit c50ad6c

Please sign in to comment.