技能 编程开发 漏洞利用收尾验证

漏洞利用收尾验证

v20261205
exploit-completion
用于把单次漏洞利用推进到确凿证据的实操方法:跟踪每一个重定向跳转、对照预先写好的成功标志比对响应差异、并在两次相同失败后更换思路而非重复发送同一请求。
获取技能
225 次下载
概览

EXPLOIT-COMPLETION — land the proof, don't quit one step early

You found the bug. You wrote the right payload. Now finish it. The common
failure is not missing the vulnerability — it is declaring defeat (or victory)
before the response proves which one it is.

Hard rule: An exploit is attempted until a response confirms the
expected outcome. "I sent it" is not "it worked." "It 4xx'd once" is not
"it can't work." Confirmation is a response you read, named in advance.

This skill is the mechanics of completing one attempt. It is not about
whether the signal is a finding (triage-validation) or whether to keep
covering surface (redteam-mindset). It sits between them: you have a lead,
now drive it to a response you can point at.


Mechanic 1 — Inspect and FOLLOW every redirect

A 3xx is a step in the flow, not the end of it. The reflection, the token,
the state change, the error key — any of them can live one hop past the
redirect you didn't follow.

# WRONG: judge the first response, stop at the 302
curl -s -i 'https://app/deliver' --data @payload        # -> 302, "looks done"

# RIGHT: see the hop, then follow it and read where it lands
curl -s -i 'https://app/deliver' --data @payload        # read Location: first
curl -s -iL 'https://app/deliver' --data @payload       # -L: follow, read the FINAL body
  • Read Location: before you follow — it is itself a signal. A redirect to

/login, to an ?error=<key>, or to a view.php?v=<constant-hash> is data
about auth/session/error state, not noise (see redteam-mindset, self-throttling anti-patterns).

  • Follow it, then diff the final body, not the 3xx. Many client-side sinks

(DOM-XSS via location/web-message, OAuth redirect_uri reflections,
SSO ACS posts) only execute after the browser completes the hop.

  • A delivered POST is not a landed exploit. If the attack is victim-side,

the proof is what the victim's request returns after the redirect fires —
reproduce that hop, don't assume it.

  • When a real browser context matters (JS executes, web-messages fire), drive it

with the browser tooling rather than curl — but the rule is identical: let the
redirect complete, then assert on the end state.

Mechanic 2 — Diff each response against an expected outcome you named first

Before sending, write down the one observable that means success. Then check
for that, not for a vague "looks right."

Exploit classExpected outcome to assert (named in advance)
Reflected / DOM XSSyour unique marker executes / appears in the post-redirect DOM, not just echoes in source
IDOR / auth bypassthe other tenant's body field is present, not merely a 200
SSRF (blind)an OOB callback attributable to one parameter (see hunt-ssrf gate)
Redirect-gated reflectionmarker present in the final body after -L, status of the last hop
Price / logic tamperthe changed amount persists server-side on re-fetch, not just in the response you got
# Name the marker, then grep the FINAL response for it — binary, not vibes.
# Put the marker in a query param the server can reflect, NOT the URL #fragment:
# curl never sends the fragment, so `#$MARK` can never come back (always 0).
MARK="xqz$(date +%s)"
curl -s -L "https://app/r?next=/x&probe=$MARK" | grep -c "$MARK"   # 0 = did NOT land, 1 = reflected
Hard rule: A 2xx is a status, not a success. Assert on the **named
marker / body delta / OOB hit**, decided before you sent the request. If you
can't state what "worked" looks like, you are not ready to send it.
  • Body-diff, not status-diff. Capture the baseline (benign input) and diff

the exploit response against it; a WAF 200-with-blocked-body and a real
200-with-reflection are the same status and opposite outcomes.

  • No marker → no claim. A reflection without a unique, attacker-chosen token

can be a coincidence (cache, static content). Make it unique, then confirm it.

Mechanic 3 — Stop and CHANGE APPROACH after N identical failures

Re-sending the same request that failed twice will fail the third time. Set
N = 2: two materially identical failed attempts means the approach is
wrong, not the execution — the third send changes something or the approach does.

When you hit the cap, change a variable before the next send — do not repeat:

  • different injection point (header vs body vs query vs path vs cookie)
  • different encoding / parser (double-URL, unicode, nested, chunked, +)
  • different content-type / method (application/json vs form, PUT/PATCH)
  • the redirect hop you skipped (Mechanic 1) — the single most common "why it

didn't land"

  • a different confirmation channel (OOB vs in-band) when the first is silent
Hard rule: Two identical failures is the last time you send that exact
request. The third attempt changes something or the approach changes. Logging
"retried, still 403" ten times is not progress — it is a loop.

"Change approach" is not "stop testing." Scope stays open; you are swapping
how you prove this lead, not abandoning it (redteam-mindset DO-NOT-STOP).
If every variable is exhausted and still no confirmation, record the negative
("no redirect-gated reflection on /r; tried body/header/query × 3 encodings")
and move to the next lead — a documented negative is coverage, a loop is not.


Before / after — redirect-gated reflection

The canonical failure this skill prevents (modeled on a July 2026 external
YesWeHack blind-lab writeup of a PortSwigger "DOM XSS via web messages +
javascript: URL" exercise — grounded generically, not a repo-disclosed report):

Before (the ~20-minute loop): agent finds the vulnerable client-side JS in
seconds, writes a correct javascript:-URL web-message payload, POSTs the
exploit to the delivery endpoint, sees a 302, assumes delivery == execution,
and re-sends the identical POST for twenty minutes waiting for a callback
that was never going to come in that response — because the payload only fires
in the victim's browser after it follows the redirect and processes the
web-message.

After (this skill):

  1. Mechanic 1 — read the 302 Location, follow it (-L / browser), inspect

the final page where the web-message handler runs.

  1. Mechanic 2 — assert the named marker executed in the post-redirect DOM

(callback hit / alert marker), not that the POST returned 302.

  1. Mechanic 3 — second identical "delivered but unconfirmed" → stop,

change approach: reproduce the victim hop instead of re-POSTing the exploit.

Proof lands in minutes; the loop never starts.


10-second self-check (run when a payload "won't work")

  • [ ] Did I read the Location and follow the redirect to the final body?
  • [ ] Did I name the expected marker / body delta before sending, and grep for it?
  • [ ] Is this my 3rd identical attempt? Two was the cap — what variable am I changing, or what approach?
  • [ ] Am I asserting on a response I read, or on "it was delivered"?

Related skills & boundary

SkillOwnsNot this skill because
triage-validationIs this confirmed signal a finding? (7-Q gate, before report)runs after you have a landed, confirmed result
redteam-mindsetDon't abandon surface coverage (engagement axis)this is one attempt's proof mechanics, not the coverage directive
bb-methodologymacro PROVE & ESCALATE phase + 45-min rabbit-hole timerthis is the micro-loop inside a single PROVE attempt
hunt-ssrf / hunt-domclass-specific detection + the OOB / web-message confirmation gatesthis reuses those gates as the "expected outcome", doesn't replace them

Compose: a hunt-* skill gives you the lead → exploit-completion drives it to
a confirmed response → triage-validation decides if it ships.

信息
分类 编程开发
名称 exploit-completion
版本 v20261205
大小 8.86KB
更新时间 2026-12-06
语言