You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
auth-endpoint-disclosure: a deadline or abort before a deferred endpoint loses the finding (#1886 follow-up) #2082
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.
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.
Activity
nc9 commentedon Nov 20, 2026
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-apihas 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
docs(changelog): note deferredToAuth is replaced by reportedBy/report…
fix(rules): one finding per leaking endpoint, deduped after the site …