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 Oct 31, 2024
1 parent 2ae6f73 commit 86d7c3a
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 86d7c3a

Please sign in to comment.