Skip to content

docs: Add detailed solution for Challenge 3 (OTP Reset) - #383

Open
sharma-abhi9av wants to merge 1 commit into
OWASP:developfrom
sharma-abhi9av:patch-1
Open

sharma-abhi9av wants to merge 1 commit into
OWASP:developfrom
sharma-abhi9av:patch-1

Conversation

@sharma-abhi9av

Copy link
Copy Markdown

Description

Added the missing detailed solution for Challenge 3 (Reset the password of a different user) to docs/challengeSolutions.md. The solution clearly outlines the API9/API2 vulnerability where the legacy /v2/ endpoint fails to enforce the attempt lockout present on the /v3/ endpoint.

Testing

Tested the solution locally against the latest crapi docker-compose stack.

  • Triggered the OTP flow for a target user.
  • Verified the rate-limit lockout on /identity/api/auth/v3/check-otp.
  • Successfully bypassed the lockout by shifting to /identity/api/auth/v2/check-otp and fuzzing the 4-digit keyspace with ffuf, resulting in a 200 OK and a valid reset token.

Documentation

This PR is strictly a documentation update to complete the empty Challenge 3 header in docs/challengeSolutions.md.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (N/A - Documentation only)
  • Any dependent changes have been merged (N/A)
  • I have documented any changes if required in the docs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant