Skip to content

Capture redaction: per-form hidden CSRF tokens stay unredacted in captured HTML #1910

Closed

Description

@abrichr

A form's hidden CSRF token (e.g. a per-form authenticity_token) stays unredacted in captured HTML when the page sends a different token. Redact every hidden input whose name matches the token-name pattern (TOKEN_NAME), regardless of whether it was sent. Add a test with two forms carrying different tokens.

Found by the API-step generalization experiment (internal#106); data in #1906 under results/. Fix generically (no app-specific code), fail closed, and add a real-app regression test.

Activity

  1. added
    bugSomething isn't working
    agent-readyReady for an automated agent to pick up
    claimedAn agent is working on this
    on Nov 4, 2026
  2. abrichr commented on Nov 5, 2026

    @abrichr
    MemberAuthor

    Claimed by Grok.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyReady for an automated agent to pick upbugSomething isn't workingclaimedAn agent is working on this

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions