Skip to content

auth-endpoint-disclosure: a deadline or abort before a deferred endpoint loses the finding (#1886 follow-up) #2082

Closed

Description

@nc9

Follow-up from #1886 (pub#2080). security/unauthenticated-api defers a leaking current-user endpoint to security/auth-endpoint-disclosure unless that rule recorded the URL as unread. Suppose the rules run api-first and the auth rule exits before reaching such a URL: its probe deadline fires, the run is aborted, or it throws. Then it never records the URL as unread and never reports it, so the finding is lost.

Acceptance Criteria

  • security/unauthenticated-api reports every leaking current-user endpoint it finds, with no hand-off to security/auth-endpoint-disclosure.
  • After the site pass, the runner keeps exactly one finding per endpoint: the one from security/auth-endpoint-disclosure when its results for that audit include the endpoint, otherwise the one from security/unauthenticated-api.
  • Tests cover both rule orders, and each way the auth rule can exit (probe deadline, run aborted, exception, runner timeout). In every case the endpoint is reported exactly once.
  • The existing Dedupe: one finding per endpoint across security/unauthenticated-api and security/user-endpoint-overexposure #1886 tests (both orders, 429 path) pass through the dedupe.

Activity

  1. added
    bug
    rules
    size: S
    on Nov 16, 2026
  2. added theissue type on Nov 16, 2026
  3. added
    size: M
    and removed
    size: S
    on Nov 20, 2026
  4. nc9 commented on Nov 20, 2026

    @nc9
    ContributorAuthor

    Updated the acceptance criteria.

    A probe deadline alone doesn't lose the finding: the shared request cache is checked before the budget, so the auth rule still reports the endpoint. The finding is lost when the auth rule throws, or the runner times it out, after unauthenticated-api has already handed the endpoint over. A fix inside the auth rule can't cover that, because the hand-off has already happened.

    So the hand-off goes. Both rules report on their own, and the runner keeps one finding per endpoint after the site pass. Size goes from S to M.

    nik

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

    bugrulessize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions