Skip to content

Commit

Permalink
tests - fix coraza POST test
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0ppy-d1sk committed Aug 9, 2023
1 parent 8c1d208 commit bc23e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .tests/coraza.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi
# Payload in POST arg
echo "ℹ️ Testing with POST payload ..."
success="ko"
ret="$(curl -s -o /dev/null -w "%{http_code}" -H "Host: www.example.com" -X POST http://localhost/ -d "id=/etc/passwd")"
ret="$(curl -s -o /dev/null -w "%{http_code}" -H "Host: www.example.com" -X POST http://localhost/ -d 'id=/etc/passwd')"
if [ $? -eq 0 ] && [ $ret -eq 403 ] ; then
success="ok"
fi
Expand Down

0 comments on commit bc23e58

Please sign in to comment.