Skip to content

test: add weak password-reset token fixture (CWE-640) - #177

Merged
ralyodio merged 3 commits into
profullstack:masterfrom
ezequiellich44-cmd:cwe-640-password-reset
Aug 18, 2026
Merged

test: add weak password-reset token fixture (CWE-640)#177
ralyodio merged 3 commits into
profullstack:masterfrom
ezequiellich44-cmd:cwe-640-password-reset

Conversation

@ezequiellich44-cmd

Copy link
Copy Markdown
Contributor

Adds a CWE-640 (Weak Password Recovery Mechanism for Forgotten Password) test case: a reset token deterministically derived from the account email plus wall-clock time, and a verification sink with a static salt, no expiry check and no attempt cap. Includes a safe counterpart using secrets.token_urlsafe with a TTL. Catalog regenerated.

Comment thread vulns/python/weak-password-reset-token.py Fixed
Comment thread vulns/python/weak-password-reset-token.py Fixed
Comment thread vulns/python/weak-password-reset-token.py Fixed
@ralyodio
ralyodio merged commit 8e20707 into profullstack:master Aug 18, 2026
5 checks passed
ralyodio added a commit to ezequiellich44-cmd/malware-test-prs that referenced this pull request Aug 18, 2026
The generated catalog conflicted with CWE-640 (profullstack#177): both sides insert
into the same sorted CWE list and bump the same count. Resolved by
regenerating with scripts/generate-catalog.py rather than by hand, so the
index matches the sources instead of either side of the conflict.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ralyodio added a commit to ezequiellich44-cmd/malware-test-prs that referenced this pull request Aug 18, 2026
The generated catalog conflicted with CWE-640 (profullstack#177) and CWE-434 (profullstack#178):
every test-case PR rewrites the same sorted CWE list and count, so any two
open at once collide. Resolved by regenerating with
scripts/generate-catalog.py rather than by hand, so the index matches the
sources instead of either side of the conflict.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ralyodio added a commit to ezequiellich44-cmd/malware-test-prs that referenced this pull request Aug 18, 2026
The generated catalog conflicted with CWE-640 (profullstack#177), CWE-434 (profullstack#178) and
CWE-620 (profullstack#179): every test-case PR rewrites the same sorted CWE list and
count, so any two open at once collide. Resolved by regenerating with
scripts/generate-catalog.py rather than by hand, so the index matches the
sources instead of either side of the conflict.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

3 participants