-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWAT-20: Remove header injection vulnerability on redirect
There was a Header Injection issue (remember HTTP is a text protocol and new lines matter). Basically you could inject a header or even the text with certain parameters. Typically, this failed on redirects because of the location header. We now throw an exception if the redirect url includes a new line or carriage return. Neither of these are valid (though you can presumably escape them).
- Loading branch information
1 parent
b5420cb
commit f68bbab
Showing
3 changed files
with
74 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters