Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add TOTP support to Post-based authentication#8855

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
faissalCytix wants to merge3 commits intozaproxy:main
base:main
Choose a base branch
Loading
fromcytix-software:cytix

Conversation

@faissalCytix
Copy link

This is an unfinished PR that adds optional support for TOTP. It's currently missing tests and I need to sign off the commits etc, but the core functionality is done. I'd just like to first know if this is a contribution you guys would be interested in before I invest time in cleaning it up. There will also be some corresponding changes to browser based auth to support TOTP fields.
Screenshot 2025-02-14 at 10 51 36
Screenshot 2025-02-14 at 10 51 49

@github-actions
Copy link

github-actionsbot commentedFeb 14, 2025
edited
Loading

All contributors have signed the CLA ✍️ ✅
Posted by theCLA Assistant Lite bot.

@thc202
Copy link
Member

BBA already supports TOTP fields.

@thc202thc202 changed the titleAdd TOTP supportAdd TOTP support to Post-based authenticationFeb 14, 2025
@faissalCytix
Copy link
Author

faissalCytix commentedFeb 14, 2025
edited
Loading

Is that a recent change? Are there docs for it yet? I didn't see it back when I started working on this

@thc202
Copy link
Member

It was done last month, there are no docs yet.

@psiinon
Copy link
Member

Pro tip - please get in touch with us before starting on any significant changes - we can then let you know if similar changes are already in progress 😁

@psiinon
Copy link
Member

psiinon commentedFeb 14, 2025
edited
Loading

Logo
Checkmarx One – Scan Summary & Details9dbe7bdc-a0c7-48ec-899a-4b501268a0f5

New Issues (11)

Checkmarx found the following issues in this Pull Request

SeverityIssueSource File / PackageCheckmarx Insight
MEDIUMCVE-2023-33201Maven-org.bouncycastle:bcprov-jdk15on-1.69
detailsDescription: Bouncy Castle for Java versions prior to 1.74 is affected by an LDAP injection vulnerability. The vulnerability only affects applications that use ...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
MEDIUMCVE-2023-33202Maven-org.bouncycastle:bcprov-jdk15on-1.69
detailsDescription: Bouncy Castle for Java in versions prior to 1.73 contains a potential Denial-of-Service (DoS) issue within the Bouncy Castle "org.bouncycastle.open...
Attack Vector: LOCAL
Attack Complexity: LOW
Exploitable Path: equals@.../extension/ExtensionLoader.java - ... - toDERObject@...cycastle/asn1/ASN1Set.java
Vulnerable Package
MEDIUMCVE-2024-29857Maven-org.bouncycastle:bcprov-jdk15on-1.69
detailsDescription: An issue was discovered in "ECCurve.java" and "ECCurve.cs" in Bouncy Castle Java (BC Java) versions prior to 1.78, BC Java LTS versions prior to 2....
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
MEDIUMCVE-2024-30171Maven-org.bouncycastle:bcprov-jdk15on-1.69
detailsDescription: An issue was discovered in Bouncy Castle Java TLS API and JSSE Provider before 1.78. This issue also affects Bouncy Castle C# package prior to 2.3....
Attack Vector: NETWORK
Attack Complexity: HIGH
Exploitable Path: doFinal@...network/ZapNTLMEngineImpl.java - ... - checkPkcs1Encoding@.../PKCS1Encoding.java
Vulnerable Package
MEDIUMCVE-2024-30172Maven-org.bouncycastle:bcprov-jdk15on-1.69
detailsDescription: An issue was discovered in Bouncy Castle Java Cryptography APIs prior to 1.78 and Bouncy Castle C# Cryptography prior to 2.3.1. An "Ed25519" verifi...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
MEDIUMPrivacy_Violation/zap/src/main/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodType.java:400
detailsMethod at line 400 of /zap/src/main/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodType.java sends user information outside the ...
Attack Vector
MEDIUMPrivacy_Violation/zap/src/main/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodType.java:400
detailsMethod at line 400 of /zap/src/main/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodType.java sends user information outside the ...
Attack Vector
LOWHeap_Inspection/zap/src/test/java/org/zaproxy/zap/authentication/UsernamePasswordAuthenticationCredentialsUnitTest.java:147
detailsMethod at line 147 of /zap/src/test/java/org/zaproxy/zap/authentication/UsernamePasswordAuthenticationCredentialsUnitTest.java defines encodedUser...
Attack Vector
LOWUse_Of_Hardcoded_Password/zap/src/test/java/org/zaproxy/zap/authentication/UsernamePasswordAuthenticationCredentialsUnitTest.java:46
detailsThe application uses the hard-coded password password for authentication purposes, either using it to verify users' identities, or to access anothe...
Attack Vector
LOWUse_Of_Hardcoded_Password/zap/src/test/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodTypeUnitTest.java:325
detailsThe application uses the hard-coded password password for authentication purposes, either using it to verify users' identities, or to access anothe...
Attack Vector
LOWUse_Of_Hardcoded_Password_In_Config/zap/src/main/resources/org/zaproxy/zap/resources/Messages.properties:1335
detailsThe configuration file /zap/src/main/resources/org/zaproxy/zap/resources/Messages.properties contains a hardcoded password in line 1335
Attack Vector
Fixed Issues (4)

Great job! The following issues were fixed in this Pull Request

SeverityIssueSource File / Package
MEDIUMPrivacy_Violation/zap/src/main/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodType.java:293
MEDIUMPrivacy_Violation/zap/src/main/java/org/zaproxy/zap/authentication/PostBasedAuthenticationMethodType.java:349
LOWUse_Of_Hardcoded_Password/zap/src/test/java/org/zaproxy/zap/authentication/UsernamePasswordAuthenticationCredentialsUnitTest.java:46
LOWUse_Of_Hardcoded_Password_In_Config/zap/src/main/resources/org/zaproxy/zap/resources/Messages.properties:1333

@faissalCytix
Copy link
Author

I was under the impression that there wasn't any interesting in adding TOTP support based on previous comments. Nonetheless, is adding the TOTP support to post-based auth still of use or is that something that's already in progress?

@psiinon
Copy link
Member

Priorities change, sometimes very quickly.
If we're aware that someone is working on something that suddenly becomes more important to us then we can talk to them and see how we can work together on it.
Confession time - I dont think that FORM based auth is all that useful any more. We wont get rid of it, but I cant see us puttting much more effort into it. Unless I'm convinced otherwise of course 😁

@faissalCytix
Copy link
Author

faissalCytix commentedFeb 14, 2025
edited
Loading

Fair enough, I guess I'll finish up just this PR then & bring it in line with the changes to BBA.

Just a couple follow up questions: There was a comment I think in the docs somewhere about BBA being accessible via the API at some point, is that still happening and do you have an idea of when that'll be/has it already happened? We're using form/json-based auth since it's what's accessible via the API, but if we can do BBA via the API I don't think we'd have as much of a need for that

@psiinon
Copy link
Member

Deleted mistaken repost 😉
The problem with the API is that we need a core change. We do plan to do it .. but dont have any ETA.
If you'd like to work on it we can give you suitable advice and guidance 😁

kingthorin reacted with thumbs up emoji

@faissalCytix
Copy link
Author

faissalCytix commentedFeb 14, 2025
edited
Loading

Noted, I'll chat with my team properly about all this on Monday and see what our priorities are

kingthorin reacted with thumbs up emoji

@thc202
Copy link
Member

Note that further work should be done on top of#7857.

psiinon reacted with thumbs up emoji

@faissalCytix
Copy link
Author

@psiinon Had a chat with my team, and we agreed BBA via the API isn't a high enough priority for us at the moment to work on.

@thc202 Should I wait for that to be merged, or shall I just merge that branch into this?

@thc202
Copy link
Member

That PR was for the API/BBA changes.

@thc202
Copy link
Member

fyi, we'll be taking care of this PR for 2.16.1.

@faissalCytix
Copy link
Author

faissalCytix commentedMar 14, 2025
edited
Loading

Taking care of it in what sense? Just so you know right now I'm updating the tests to include this functionality (edit: see the commit after this message). Shall I leave it to you guys to finish off once I've done that?

@faissalCytix
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

kingthorin reacted with thumbs up emoji

@faissalCytixfaissalCytix marked this pull request as ready for reviewMarch 14, 2025 14:41
…me-password encoding with previous ZAP version
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@faissalCytix@thc202@psiinon

[8]ページ先頭

©2009-2025 Movatter.jp