A retest returns 403, and closing the finding looks tempting. The same response can appear because the tester’s session expired, the account lost its required role, the test object was deleted, or the request reached the wrong environment. A negative result supports a fix only when the relevant path was actually reachable under the required preconditions.

The broader retest process is covered in the guide to proving that a finding was remediated. This article solves a narrower problem: preventing missing access or empty data from becoming a false “fixed,” recording “test blocked” as a separate result, and defining exactly what must happen before testing resumes.

One Negative Response Allows Four Outcomes

A retest of one finding has four operationally different outcomes. Fixed means the original case and pre-agreed variants no longer show unsafe behavior under verified preconditions while legitimate actions still work. The positive control establishes test readiness; it does not replace the full closure criteria. Not fixed means the unsafe behavior is reproduced on the named build. Test blocked means the meaningful probe cannot be executed because a session, role, object, dataset, route, or environment is missing. Not applicable means an agreed change truly removed the test subject or requirement, as confirmed in the architecture and running system.

This is a practical reporting classification, not OWASP or NIST terminology. It is needed because “not reproduced” combines absence of a defect with absence of a test. A blocked result neither lowers nor raises the original finding’s risk. Its prior status remains until a new evidence-producing test or a separate risk decision is completed.

Open a Readiness Gate Before the Negative Probe

Before attempting the unsafe behavior, the tester confirms that the test case is ready. NIST SP 800-53A defines testing as exercising an object under specified conditions and comparing actual state with desired or expected behavior. SP 800-115 describes documenting the agreed scope, activities, and assessment limitations in an assessment plan. Those publications do not prescribe the gate below; it is a proposed way to apply their logic to retesting.

Scroll sideways to compare

PreconditionPositive readiness controlBlocking signal
Sessionan authenticated page or whoami confirms the intended user401, login redirect, or a new anonymous cookie
Rolean operation allowed to that role succeedsthe allowed operation also returns 403
Objectsowned and foreign test objects both exist and are distinguishableboth return 404, or an object was deleted
Dataa control query returns the expected non-empty setan empty list cannot prove filtering
Route and buildhealth/version and the allowed action identify the target endpointDNS failure, timeout, maintenance page, or different build ID

A positive control does not prove security. It proves only that the test is in a state where the negative probe has meaning. If the control fails, do not interpret the security probe. Restore the missing condition or finish with an honest blocked result.

Within an agreed pentest scope, Pentest.red can specify the needed roles, two test accounts, objects, permitted actions, test window, endpoint, and build identifier before the retest. This helps separate an application defect from an unusable test environment. It does not automatically restore access or authorize testing beyond the agreed boundaries.

Run a Control Chain Before and After the Denial

Consider an explicitly hypothetical finding: a user in tenant A could read tenant B’s invoice through GET /invoices/{id}. The retest has active sessions for two test accounts: A owns invoice A-101 and B owns invoice B-202. Each user should read its own invoice, while A must be denied access to B-202.

  1. Record the environment, build ID, accounts A and B, and their session times.
  2. Run both positive controls in the same environment and build: A reads A-101 and B reads B-202. Confirm each returned object and owner, not only a 200 response.
  3. Run the negative probe: account A requests B-202 with the same method and session.
  4. Immediately repeat both positive controls: A reads A-101 and B reads B-202.
  5. Preserve minimized requests, responses, and object identifiers without unnecessary secrets.

The repeated positive controls matter. Between requests, a session may expire, a role may refresh, a gateway may switch backends, or the environment may restart. If A’s probe of B-202 returns 403 and A-101 then also returns 403, the test established general loss of access, not object-level authorization. If A’s probe of B-202 returns 404, B’s legitimate access to B-202 before and after it confirms that the target existed and remained available to its owner in the same environment and build.

OWASP WSTG v4.2 recommends at least two users with differently owned objects for IDOR testing and, when relevant, users with different privileges. WSTG separately describes server-enforced session expiration. Those sources support the example’s preconditions. The before-and-after positive control is the reliability technique proposed here.

Evidence chain for a blocked retest
  1. ReadinessConfirm environment, build, session, role, and existing test data
  2. Control beforeBoth accounts read their own objects in the same build
  3. Negative probeRepeat the original prohibited action on the foreign object
  4. Control afterRepeat both legitimate reads and confirm sessions, route, and objects
  5. DecisionAssign fixed, not fixed, blocked, or not applicable

Do Not Turn 401, 403, or 404 into Proof of a Fix

RFC 9110 leaves these responses ambiguous: 401 concerns missing or rejected credentials; 403 is a refusal that can have reasons unrelated to credentials; 404 can mean either absence or concealment of a forbidden resource. The code alone does not prove a fix. Confirm the session, object existence, environment, and the paired allowed/denied actions; compare content and application effect too.

Separate Blocked from Not Applicable

A deleted test object makes the test blocked when the business function and object class still exist; the team needs a new authorized dataset. Not applicable is justified when a feature, route, or role was deliberately removed from the supported product, the old path is unreachable, and an equivalent operation was not moved into another API.

Scroll sideways to compare

StatusMinimum basisWhat the retest record contains
Fixedreadiness passes, the original case and agreed variants show no defect, controls after passbuild, role, objects, expected and actual behavior
Not fixedoriginal prohibited action succeeds againreproducible evidence and remaining impact
Blockedat least one necessary precondition is unconfirmedexact blocker, owner, and resumption condition
Not applicablethe tested function or requirement object is truly removedremoval decision, runtime observation, and replacement check

“The page no longer opens” is insufficient for not applicable. Record the change or architecture decision, confirm the named build, verify the old route’s absence, and examine the possible successor. Even a supported not-applicable conclusion applies to the specific test case; decide the whole finding and residual risk separately. Otherwise an endpoint move can masquerade as remediation.

Assign a Resumption Condition, Not “Give Us Access”

Blocked is useful only when it names the next observable event. For an expired session, require a fresh test token for the intended user, its validity window, and a successful owned-object control. For a lost role, restore it or provide an equivalent account only when the agreed permission matrix still assigns that role to the test user. If removal of the role is part of the fix, revise the criterion and agree an equivalent scenario instead of restoring unsafe rights. For a deleted object, create two objects with different owners and stable test identifiers. For an empty result set, seed specified records and state the expected count. For an unreachable environment, provide a working endpoint, build ID, and agreed window.

Assign an owner and due date for the dependency, but do not promise a result date before readiness is restored. If the blocker changes the authorized scope, such as a new domain or third-party gateway, update the testing authorization. The tester must not bypass the restriction unilaterally or move the probe to a similar system owned by someone else.

A useful reopening ticket contains the finding ID, blocked test case, last confirmed build, missing precondition, responsible owner, required artifact or action, test window, and a “ready to resume” criterion. “When the environment is fixed” is not an observable trigger.

Preserve Uncertainty in the Retest Record

Do not count blocked as passed, failed, or unexplained “not tested.” For each attempt, record time, environment and build, role and session age, test-object identifiers, positive control before and after, negative probe, blocker, collected evidence, owner, and resumption condition. Minimize secrets and retain any protected original under the agreed handling rules.

A management line can read: “AC-17 test blocked: Tenant Manager role is absent from account A; legitimate access to A’s own invoice returns 403. Original finding status is unchanged. Resume after assigning the role on build 2026.10.24.3, if the agreed permission matrix still requires it, and confirming A can read A-101.” The cause, limit of the conclusion, and next action are all visible.

Pentest.red can perform an agreed API retest for the named finding. If the flaw reproduces, engineers can receive evidence of access to the other test account’s invoice, the steps, impact, and remediation priority. If testing is blocked, the team can name the missing dependency in the result and repeat the agreed scenario after it is restored. This does not guarantee that other vulnerabilities are absent or turn a blocked probe into closure.

Close the Evidence Gap, Not the Inconvenient Ticket

A sound negative result includes a working positive control. A sound blocked result names the missing precondition and assigned resumption event. A sound not-applicable conclusion proves removal of the tested surface rather than relying on a new 404.

This prevents an unavailable environment from being rewarded as secure. The team can restore readiness, rerun the narrow test, and decide from the fix’s observed behavior while keeping the original uncertainty visible until evidence exists.

PENTEST.RED

Discuss pentest scope and pricing

We start by agreeing on systems, access, constraints and the expected evidence.

Prepare your testing scope

Based on in-depth research, edited for clarity and practical use.

PENTEST.RED / RED JOURNAL