Skip to content

Dedupe: one finding per endpoint across security/unauthenticated-api and security/user-endpoint-overexposure #1886

Closed

Description

@nc9

security/unauthenticated-api (#1880) and security/user-endpoint-overexposure (#1885) can both probe and report the same user-shaped endpoint, such as /api/me or /api/user, so one exposure shows up as two findings. This blocks the next CLI release that ships both rules.

Acceptance Criteria

  • An endpoint matched by both rules produces exactly one finding across the two. The more specific one wins: user-endpoint-overexposure when it confirms password hashes or the full user record, otherwise unauthenticated-api.
  • The endpoint is requested once per audit, not once per rule; the response is shared through the existing probe budget or a shared result.
  • A test with a fixture serving /api/me that leaks a user record asserts one finding and one request.
  • Neither rule's other findings change: existing tests pass unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrelease-blockerrulessecurity

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions