zap-extensions
zap-extensions copied to clipboard
ascanrules: Reflected XSS introduce param object
Overview
To facilitate further modifications and refactoring.
- CHANGELOG > Added maintenance note.
- CrossSiteScriptingScanRule > Introduce and leverage new param object.
- HtmlContextAnalyser > Throw an exception if the target param is empty as that leads to an infinite loop.
Related Issues
- https://github.com/zaproxy/zap-extensions/pull/3838
Checklist
- [ ] Update help
- [x] Update changelog
- [x] Run
./gradlew spotlessApplyfor code formatting - [ ] Write tests
- [x] Check code coverage
- [x] Sign-off commits
- [x] Squash commits
- [x] Use a descriptive title
Checkmarx One – Scan Summary & Details – ba1b1224-6458-4a38-93f2-dd8e3ff46a31
Great job! No new security vulnerabilities introduced in this pull request
Use @Checkmarx to reach out to us for assistance.
Just send a PR comment with @Checkmarx followed by a natural language request.
Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR
Added "clean code" commit. It removes an unused param in two methods in the rule, and returns an object directly skipping an intermediate store in the unit tests.
Verified that the additional tests in zaproxy/zap-extensions#6638 also work here. I know this still requires attention, just making note.