Skip to content

Add password-in-cookie check (#143)#221

Open
jthack wants to merge 2 commits intomainfrom
issue-143-password-value-cookie
Open

Add password-in-cookie check (#143)#221
jthack wants to merge 2 commits intomainfrom
issue-143-password-value-cookie

Conversation

@jthack
Copy link
Copy Markdown
Contributor

@jthack jthack commented Oct 23, 2025

Summary

  • parse Set-Cookie headers and flag password-like names or values
  • report a high severity finding while redacting actual secret material
  • register the passive check and enable it in the Balanced preset

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test -- --match 'Password value stored in cookie'

Closes #143

@jthack jthack requested a review from a team as a code owner October 23, 2025 13:32
Add comprehensive test coverage for password detection in cookies:
- Detection: passwd, pwd, passcode, separators, brackets
- False Positives: bypass, passport keywords
- Edge Cases: empty values, security flags, no cookies
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.

Password value set in cookie

1 participant