forked from soveran/cuba
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape newlines in common logger lines
This uses the same approach I used in Rack. I don't consider this a security issue, because expoiting it requires a broken server that is including newlines in things that it shouldn't. Attempts to exploit it even in that case leave a clear trail in the log, since there will be a partial line directly before an attempt to inject a line.
- Loading branch information
1 parent
8a3d9b6
commit b3b906c
Showing
3 changed files
with
16 additions
and
3 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