-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exim: Fix Sites Tree export #6232
base: main
Are you sure you want to change the base?
Conversation
addOns/exim/src/main/java/org/zaproxy/addon/exim/sites/SitesTreeHandler.java
Outdated
Show resolved
Hide resolved
Great job, no security vulnerabilities found in this Pull Request |
0181958
to
7aaba7d
Compare
addOns/exim/src/test/java/org/zaproxy/addon/exim/sites/SiteTreeHandlerUnitTest.java
Outdated
Show resolved
Hide resolved
7aaba7d
to
615db38
Compare
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.
LGTM
addOns/exim/src/test/java/org/zaproxy/addon/exim/sites/SiteTreeHandlerUnitTest.java
Outdated
Show resolved
Hide resolved
The proposed fix seems overly complex/convoluted, IMO it would be better to just use a higher-level library instead (like we do in other places of the codebase). |
@thc202 can you point me out where I can find those examples? Which library? I could adapt the pr. |
Any that uses |
@thc202 I applied the change in another commit to be easy to check. Let me know what do you think. That also had a correct yml for one of my targets |
Signed-off-by: Nilson Magalhaes Junior <[email protected]>
1ed7b29
to
c8d4e0d
Compare
Overview
ZAP Exim Add-on: Fix for Node Names with Newlines and Special Characters
Purpose
To fix an issue in the ZAP (Zed Attack Proxy) exim add-on where the Sites Tree export functionality was not correctly handling node names that contain newlines and special characters. This caused problems when exporting and then importing site trees with complex node names.
Goals
Ensure proper preservation of newlines and special characters in node names during export/import
Changes Made
YAML Configuration Improvement:
Modified the YAML configuration in SitesTreeHandler.java to use LITERAL scalar style instead of DOUBLE_QUOTED
Created a shared createYaml() method for consistent YAML configuration between export and import operations
Deeply nested paths
Node names with special characters and spaces
Long URLs with encoded characters
Various HTTP methods and response codes
Related Issues
Fixes zaproxy/zaproxy#8858
Checklist
./gradlew spotlessApply
for code formattingFor more details, please refer to the developer rules and guidelines.