This page is included in the guided lesson.Open this part in context →
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
| Attempt | Expected under the starter | My observed result and evidence |
|---|---|---|
| Alice's initial password | Accepted | |
| Reset with known email but no token | Incorrectly allowed | |
| Login with proposed new password | Accepted | |
| Login with original password after reset | Rejected |
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
| Attempt | Expected after repair | My observed result and evidence |
|---|---|---|
| Missing token | Rejected | |
| Original password after rejected reset | Accepted | |
| Proposed new password after rejected reset | Rejected | |
| Incorrect token | Rejected | |
| Owner's latest valid token | Accepted | |
| New password after valid recovery | Accepted | |
| Original password after valid recovery | Rejected | |
| Reuse the successful token for another change | Rejected; 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
- Why is an account identifier not proof of control?
- Why is a browser-only required-field rule insufficient?
- Why must tokens be account-bound, expiring and single-use?
- How does this change the design requirement, rather than only make a form work?
- Name one additional production protection and explain why this local lab does not establish it.
- What can CVE Lite's dependency scan tell you, and why would it not by itself detect this missing recovery rule?