-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
analysisdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
We have currently only handing JWS but we have not handled JWE so under this enhancement we are looking to add:
- Analysing Vulnerabilities related to JWE by going through various blogs, bug bounties, other scanner add-on's
- Implement the Attack vectors
- Adding the Vulnerable code in https://github.com/SasanLabs/VulnerableApp/blob/master/src/main/java/org/sasanlabs/service/vulnerability/jwt/JWTVulnerability.java so that we can test the attack vectors.
- Add a design document regarding the same.
Code References
Attack vectors: https://github.com/SasanLabs/owasp-zap-jwt-addon/tree/master/src/main/java/org/zaproxy/zap/extension/jwt/attacks
Adding Support for parsing JWE:
owasp-zap-jwt-addon/src/main/java/org/zaproxy/zap/extension/jwt/utils/JWTUtils.java
Line 139 in ec58672
| public static boolean isTokenValid(String jwtToken) { |
Fuzzer code: https://github.com/SasanLabs/owasp-zap-jwt-addon/blob/master/src/main/java/org/zaproxy/zap/extension/jwt/fuzzer/ui/JWTFuzzPanelView.java
Scan Rule code: https://github.com/SasanLabs/owasp-zap-jwt-addon/blob/master/src/main/java/org/zaproxy/zap/extension/jwt/JWTActiveScanRule.java
Testing the changes
build the addon by running
- ./gradlew spotlessApply
- ./gradlew build
Then go to the ZAP -> File -> Local addon file -> Navigate to project -> build -> bin -> jwt*.zap and done.
Metadata
Metadata
Assignees
Labels
analysisdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request