-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit the decoded form of individual command line arguments. This is to work various issues passing command line arguments from Java to the OS on Windows. This restriction may be overridden by the new initialisation parameter cmdLineArgumentsDecoded. This is the fix for CVE-2019-0232.
- Loading branch information
Showing
6 changed files
with
80 additions
and
2 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
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
4b244d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the regular expression for cmdLineArgumentsDecoded is [[a-zA-Z0-9\Q-.\/:\E]+] in the web.xml comment (line 358), it's [a-zA-Z0-9\Q-.\/:\E]+ in the CGIServlet.java (line 258).
Which is correct?
(Please allow me if I'm asking a silly question. I'm not so familiar with the issue but need to clarify for some reason.)
4b244d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is
[a-zA-Z0-9\Q-.\/:\E]+
.The outer
[...]
in web.xml are the standard delimiters used in that file for parameter values. Unfortunately that does create a potential ambiguity in this case.4b244d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much!
It helped a lot!