-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
authhelper: try login links if authentication fails WIP #6203
base: main
Are you sure you want to change the base?
Conversation
Great job, no security vulnerabilities found in this Pull Request |
addOns/authhelper/src/main/java/org/zaproxy/addon/authhelper/AuthUtils.java
Outdated
Show resolved
Hide resolved
addOns/authhelper/src/main/java/org/zaproxy/addon/authhelper/AuthUtils.java
Outdated
Show resolved
Hide resolved
Should we have a list of fields/buttons to avoid or exclude? Like: reset, forgot etc (To ensure we aren't hitting a PW reset form) |
Yes, but that would be for the AJAX/client spiders. This code will only click on Login type links, which should not have any logout / reset terms? If they could be present then we could avoid them, but I dont know of any examples right now. |
c6dc362
to
812fb86
Compare
Signed-off-by: Simon Bennetts <[email protected]>
812fb86
to
70b17e0
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.
One very minor thing, otherwise looks good.
@@ -4,6 +4,9 @@ All notable changes to this add-on will be documented in this file. | |||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | |||
|
|||
## Unreleased | |||
### Added | |||
- If authentication fails then try to find a likely looking login link |
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.
Add a period?
Moved back to WIP as its not working with some of the real world sites I'm testing with |
Overview
As per title.
Ready for review but would like the auth tests in place before its merged so we can see what impact it has.
Related Issues
Checklist
./gradlew spotlessApply
for code formattingFor more details, please refer to the developer rules and guidelines.