-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved: Prevent URL parameters manipulation (OFBIZ-13147)
Add ROT13, and improves few short deniedWebShellTokens by surrounding them by spaces. It's to avoid collisions while loading image files We don't need hashed deniedWebShellTokens, only hashed allowedTokens, get back to simple text. Simplifies SecuredUpload: No need for Base64 handling, using deniedWebShellTokens is enough. Improves performance, remove duplicated calls inside loops or stream().allMatch Improves comments. Adds 6 new deniedWebShellTokens in security.properties This follows Leïla comment. It simplifies the SecuredUpload::isValidEncodedText content and renames it isNotValidEncodedText Also 3 new deniedWebShellTokens are added, some more to come Conflicts handled by hand in ControlFilter.java and SecuredUpload.java
- Loading branch information
1 parent
e852957
commit 8385c8e
Showing
4 changed files
with
35 additions
and
36 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