Skip to main content

Submission: Who can reset this account?

Name / group:

Date:

Use only fictional values. Copy text or attach your own screenshots as you go; later actions may replace displayed results. Follow your instructor's submission format and deadline.

Before: observed behavior​

AttemptExpected under the starterMy observed result and evidence
Alice's initial passwordAccepted
Reset with known email but no tokenIncorrectly allowed
Login with proposed new passwordAccepted
Login with original password after resetRejected

Why is the reset a security problem even though the app works?

Design before coding​

  • Asset we protect:
  • What an unauthorized requester knows:
  • What the server must verify before a password change:
  • What must remain unchanged when verification fails:
  • Intended recovery sequence:
  • Why the teaching mailbox is not a public production feature:

My repair​

Attach your edited recovery-policy.mjs and its before copy. Explain the import change, the new guard, and why the password update must follow the guard.

After: evidence​

AttemptExpected after repairMy observed result and evidence
Missing tokenRejected
Original password after rejected resetAccepted
Proposed new password after rejected resetRejected
Incorrect tokenRejected
Owner's latest valid tokenAccepted
New password after valid recoveryAccepted
Original password after valid recoveryRejected
Reuse the successful token for another changeRejected; password unchanged

Automated checks​

Paste the full node checks.mjs output. Explain one check you did not demonstrate manually, such as expiry or cross-account rejection. Distinguish a result you observed from one established by the automated checks.

Interpretation​

  1. Why is an account identifier not proof of control?
  2. Why is a browser-only required-field rule insufficient?
  3. Why must tokens be account-bound, expiring and single-use?
  4. How does this change the design requirement, rather than only make a form work?
  5. Name one additional production protection and explain why this local lab does not establish it.
  6. What can CVE Lite's dependency scan tell you, and why would it not by itself detect this missing recovery rule?

Screenshot preview