Skip to content

Cross-rule dedupe: json-sensitive-fields and auth-endpoint-disclosure both report one leaked password field #2083

Closed

Description

@nc9

Same family as #1886. An endpoint that returns a plaintext password field, for example the nut-shop /api/account fault, is reported twice: by security/json-sensitive-fields ("returns plaintext password or salt") and by security/auth-endpoint-disclosure ("answered a GET with no credentials with 1 password"). Seen in the 2026-11-17 TP smoke S23.

Acceptance Criteria

  • An endpoint that both rules would flag for the same password, hash or secret field produces one finding. The rule that keeps it is decided and written down: the more specific one for auth or session endpoints.
  • The endpoint is still requested once per audit (it shares the anonymous GET from Dedupe: one finding per endpoint across security/unauthenticated-api and security/user-endpoint-overexposure #1886 where the request shape allows).
  • A fixture test with a /api/account-style endpoint asserts one finding and one request, in either rule order.
  • Neither rule's other findings change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions