Takopi Class  /  The deck

Vulnerability Discovery Patterns

Every chain opens with recon, the site and narrow recon for most of them, the domain or the org's CIDRs for the wide recon family, because recon is where the hook comes from. Read the middle of each chain, that hop is the pattern, the last stop is only the name of the bug. When recon hands you a hook, find the cards that start with it and run each one to a verdict.

88 chains one per row, no repeats Click a stop the line walks to it, step by step Click the last stop walk the whole chain Click it again clear the line

Client-side, reaching XSS

15 chains

A sink in the page, or a response the browser renders, and the hop that gets your input into it.

01

Grep the bundles for message listeners. A handler that skips the origin check, or checks it with indexOf or a loose regex, then writes event.data into innerHTML, location or eval, fires from any page that can frame or open the target

02

A client-side path traversal lets you steer a fetch to a path you choose, and its response feeds a sink. Upload a JSON file to the same origin and traverse the fetch onto it, your file becomes the data the sink renders

03

The same CSPT with no upload. Traverse the fetch onto a same-origin open redirect, the fetch follows it to your server, and your JSON, served with CORS headers, reaches the sink

04

An endpoint reflects input inside a JSON body but serves it as text/html, or with no type and no nosniff, so opening the URL directly renders your input as a page

05in class 010607

The file comes back from a site origin with a type the browser renders, SVG or HTML, usually because the content type is the client's choice on the upload request and nothing opens the bytes

06in class 07

The file lands in a bucket but comes back through the site's own reverse proxy on a trusted domain, and the proxy passes the bucket's stored Content-Type straight through. If the upload lets you set that type, text/html or image/svg+xml, the script runs on the trusted origin. Check whether the proxy rewrites the type or forces a download first

07in class 0105

A subdomain of the site is a CNAME straight onto the bucket or the CDN in front of it, so every object is served on a trusted origin with the Content-Type stored at upload. When the upload request lets you pick that type, an HTML or SVG file is a stored XSS on the site's own subdomain

08

The app opens uploaded PDFs in its own viewer on the site origin and keeps the document's links live, so a javascript: link or a script action inside the PDF runs when the victim clicks it

09

A self-XSS only ever fires for you. Get the response that carries it stored by a shared cache, through an unkeyed input or a static-looking path, and every visitor to that URL gets your payload

10

Log the victim out and into your account so your self-XSS runs in their browser. The payload then starts the OAuth flow, the victim's still live IdP session approves it, and the script reads the fresh code off the callback before the site spends it

11

A redirect, window.open or iframe sink takes the whole URL and never checks the scheme, so no host bypass is needed, a javascript: URL runs on the target origin

12

A Go Back or Cancel button has to know where you came from, so its target is built from a source you control, a returnUrl or back param, document.referrer, a hash or saved history state. Open every login, forgot password and step page with the button, read its click handler, trace the source into the sink, an href, a location assignment or innerHTML, and try javascript: or markup there

13

The sanitizer is fine, the code after it is not. When the app renames, linkifies or regex-rewrites HTML that was already sanitized, the edited string is parsed again and an inert construct can come back as live markup

14

The page builds the path of a write request from an id in the URL, so a traversal in that id re-points the PUT or POST at another API route, and accepting the invite changes the victim's email instead

15

An instruction planted in a field the assistant later reads makes it print an image whose URL carries the victim's data, and the browser fetches that URL on its own, no click needed

Access control

14 chains

Functionality the frontend hides from you, and a server that never checks whether you were meant to reach it.

16

The bundle names endpoints the UI never calls for your role, admin routes, old versions, internal tools, and the ones nobody wired a button to are often the ones nobody wired authorization to. Fuzz for the chunks the page never loads, they hide the most

17

Read how the build names its files, then guess the ones it never links. Chunk names follow a pattern, numbered chunks, feature names, an admin bundle beside the user one, so a wordlist built from that pattern finds bundles no page loads, and their endpoints are the least tested for ownership

18in class 11

What the browser loads on the first page is never the whole app. Routes and dynamic imports pull more chunks as you move, so walk every feature, then pull the rest of the build, and test each new endpoint with another user's ids

19in class 11

The webpack runtime carries the chunk id to hash map for the whole build, so you rebuild the URL of every chunk, the admin ones you never reach included, and test what they call

20in class 11

When the static host is a bucket that lists itself, you stop guessing chunk names and read the whole inventory, old builds and sibling apps included, then mine every bundle for endpoints

21

Old builds in the archive name endpoints the current bundle dropped, and a removed button rarely means a removed route, so replay each old endpoint against the live API with another user's ids

22

Param mining finds a parameter the frontend never sends, user_id, account, org, and the server honours it over the session, so another user's id returns their data

23

The admin screen's code shows the field names the server binds, role, isAdmin, plan, add one to your own profile update and see whether it sticks

24

Introspection, or field suggestions when it is off, lists operations the client never uses, admin mutations included, and each one is a separate authorization check to test with a low privilege token

25

OpenAPI, Swagger and discovery documents list every method, hidden ones included, and a staging copy often adds comments. The method with the vaguest description is usually the one scoped worst

26

Type errors echo the name of the field that failed, so sending wrong types for everything makes the server list its own hidden request schema, debug fields the UI never sends included

27

The response returns the whole serialized object you referenced, not just what the UI shows, so compare the raw JSON with the screen and look for tokens, emails and keys that should never have left the server

28

The API passes your filter keys and operators straight into the ORM, so starts_with or __regex on a column the UI never shows turns the result count into a yes or no oracle, one character at a time

29

The frontend server forwards your id into the path of its own backend request, so a traversal in that id rebuilds the internal URL, swaps the object or reaches routes the public API never exposed

OAuth and account linking

16 chains

The IdP is rarely the bug. The bug is where the code or token travels after it, and what the site trusts when it arrives.

30

The redirect_uri is locked to the site but any path on it passes, so aim it at a same-site open redirect and the code or token rides the bounce to your server, a fragment survives the 302

31

The validator and the browser parse the URL differently, \@, userinfo, a suffix match on the host, a path traversal, and the IdP hands the code straight to a host you own. \@ is the first payload to try

32

The page the code lands on loads a third-party resource or links out with no strict Referrer-Policy, so the URL carrying the code leaks in the Referer to a host you can read

33

The app keeps where to send you after login inside state, a base64 JSON returnTo or AppURL nobody signs because state is meant to be opaque. Decode it, point that URL at your host, and when the callback's second redirect forwards the code or token, it lands with you even though redirect_uri is locked

34

The callback page hands the code or token to its opener with postMessage(data, '*'), or a listener answers whoever asks, so any page that opened the flow receives the victim's token

35in class 12

The bundle still ships an older or alternate flow the UI no longer starts, an implicit grant, a legacy provider, a desktop or mobile redirect, and the old path skips checks the current one added

36in class 10

A desktop or TV login polls a server store for the OAuth result, keyed by an id the client picks. Put your id in the authorize link the victim opens, then poll the store yourself and read their code

37

Start linking your own social account, stop before the callback, then make the victim's browser finish it. With no state bound to their session, your identity is attached to their account and signs you in

38

The site merges accounts on an email it never proved, from an IdP that does not verify it or a signup that skipped confirmation, so an identity carrying the victim's email lands inside the victim's account

39in class 12

Ask for token or code id_token where the app expects code, the artifact moves into the fragment and a fragment survives a server-side 302, so an open redirect the server emits carries it off. Session 12 already has the redirect half

40

The checks are written for the flow that succeeds, so the cancel, deny, prompt=none and invalid scope branches sometimes redirect to a redirect_uri nobody validated, an open redirect on a trusted auth domain to chain

41

An allowlist with a wildcard host or path trusts more than the app owns, so a taken-over sibling subdomain or a page you can write on an allowed host receives the code

42

Send redirect_uri twice, in both orders, in query and body, if the validator reads one copy and the redirect uses the other, the code goes to the copy nobody checked

43

Get an id_token from the same provider through an app you control and send it to the target, if the backend never binds aud to its own client id, any site that can obtain a token for its own app signs in as that user

44

Strip or shrink scope and watch what the app does without the claims it relies on, an app that still logs you in or links an account with no email or profile has skipped a check it assumed the IdP would make

45

Send a wrong state and read the error, some servers return the expected value in the error body, which hands you everything needed to finish the flow in the victim's browser

Login and tokens

10 chains

The credential that proves who you are, and the ways it can be minted, guessed or skipped.

46

The server decodes the token without truly verifying it, alg: none, RS256 to HS256 with the public key as the secret, a weak HMAC secret, a kid or jku you control, then you change sub and become anyone

47

The login link's token is built from things you can know or guess, a timestamp, a sequential id, the email encoded, a short code with no rate limit, so you mint the victim's link without their inbox

48

The reset email builds its link from the Host or X-Forwarded-Host header, request a reset for the victim with your host in it, and their token arrives at your server when they click

49

The client decides you are in from a flag in the response, flip success:false or a 401 in Burp and the app opens. It only counts when the API calls behind that screen succeed too, a UI that opens over a server that refuses is not a bug

50

The domain check and the mailer read the same address differently, encoded-word or quoted local parts, so an address passes as the allowed domain while the confirmation mail reaches you

51

The lookup uses the first email in the array while the mailer sends to all of them, so the victim's reset link reaches your inbox too. Try the same shape on every email or id parameter

52

The session issued after the password step already works on the rest of the app, or the endpoints that disable or reset 2FA ask only for that session, so the second factor is a screen, not a check

53

The lockout counts per IP or per field, and you control what it counts, a forwarded-IP header, a client IP in the body, a fresh address from your IPv6 range, or a no-JS fallback form, so every guess looks like a new client

54

Signed but unencrypted session cookies can be read by anyone, and the key that signs them is often in a wordlist or leaked elsewhere, so you re-sign the cookie with the role you saw in the JS

55

The public pool and client ids in the bundle are enough to talk to the identity provider directly, sign up where the app never offers it, or write your own custom:role or tenant attribute that the backend later trusts

Auth bypass at the edge

5 chains

The login check lives in one layer and the route in another, and the two disagree about what the request is.

56

The edge matches the raw path while the backend decodes and resolves it, so ..;/, %2f, a doubled slash or a ; parameter walks past the rule into the route it was guarding

57

The auth layer waives login for paths that start or end like static or health routes, so a path that still matches the allowlist but resolves somewhere else reaches the internal API without a session

58

The framework sends the redirect to login but keeps running the page, so the 302 carries the protected content in its body. Read it in Burp instead of following it

59

A framework trusts a header meant only for its own internal requests, x-middleware-subrequest on vulnerable Next.js, so sending it from outside skips the middleware that held the login check. Fingerprint the version first, these get patched fast

60

The backend trusts an identity header the front proxy was supposed to set, X-Remote-User or a client IP variant, and one route or one spelling the proxy does not overwrite lets your value through

Wide recon, from the domain

16 chains

These start one level up, at the root domain or the org's IP ranges. Discovery hands you the hosts, and the hook is how a host answers or what it runs.

61

Staging often shares production's signing key, session store or cookie domain but skips email verification. Register the victim's email on staging-app.target.com, take the cookie or token it mints and send it to app.target.com, production accepts it as the victim's session with no click from them

62

On every live host, send the 20 most common parameter names in one request, each carrying a harmless hook like <u>test. A page that renders the hook as markup rather than text has an unencoded reflection, then confirm it with a real payload

63

Error pages, 404s and canonical links often print the requested path back, so request a path carrying a harmless hook on every host and look for it rendered unencoded, a reflection in the path needs no parameter at all

64

A host that answers the root with a redirect or a 404 is not empty, it just has nothing routed at /. Fuzz paths on it, the app behind that empty front door is usually less reviewed than the main one

65

A 403 on the root is often one rule on /, not the whole host. Add a path, and a 404 or any other answer proves the app behind it is reachable, then bypass the 403 where it applies and fuzz for files on what answers

66

Whatever the host answers, fuzz for JavaScript file names it never links, app.js, main.js, config.js, build names, and read every bundle that comes back for credentials, internal paths and API routes

67

Backups are named after the host, the app and the date, so build candidate names per host, www.target.com.zip, target.tar.gz, backup.sql, and one hit is often the full source or a database dump

68

A 400 means the endpoint wants something you did not send. Change the method, GET to POST, PUT or a JSON body, until it answers 200, then fuzz parameters on that method and test whatever it accepts

69

Fingerprint every live host and group them by stack, then run that stack's known checks across the whole group, for WordPress a request for /wp-content/debug.log, one exposed log or config is a finding made at scale

70

Fingerprint the stack and its version on every host, then match it to published CVEs, an old build on a forgotten subdomain is the cheapest finding in wide recon. Test the CVE safely, a version string alone is not proof

71

An internal tool hands its login to a public identity provider without restricting the tenant or domain, so any account you own signs in, and dashboards and CI consoles are exactly the tools that sit on forgotten subdomains

72

A subdomain still points at a cloud resource that was deleted, so whoever registers that name serves content on the org's domain. Prove the record is claimable and report it, never register the resource yourself

73

Outsourced backends live under a vendor's root domain that never shows up in the org's own subdomain list. Spot it in JS config or a CNAME chain, enumerate that domain, and the back office hosts behind it are often the least protected

74

A sibling subdomain can set a cookie for the parent domain, and a narrower Path makes it win on one route, so a session or CSRF value you chose rides into the victim's requests on exactly that route

75

The main host checks Origin on the WebSocket handshake but a second hostname for the same backend does not, so a page you control opens the socket with the victim's cookie and drives it

76

The org's IP ranges hold hosts no DNS name points at, so map every address, scan the ports, and an admin panel, database or dashboard listening without auth is a finding on its own, no web app needed

Business logic

3 chains

The rule the business cares about, enforced in the wrong place or in the wrong order.

77

The paywall lives in the frontend and the premium API never checks the plan, read the call out of the bundle and send it from a free account

78

A one-time action is checked, then spent, in two steps, fire the redeem as a single packet burst and it lands several times before the first write marks it used

79

Changing the email and confirming it are separate steps with no lock between them, so a confirmation issued for your address lands after the address was swapped to the victim's

Cache

3 chains

The part of the request that decides the content is not the part that decides the cache key.

80

A response that changes with the cookie or the Authorization header is cached without it in the key, so the first user's data is served to everyone who asks after

81

The cache treats /account/x.css as static while the origin still serves /account, send the victim that URL, their page and its token land in the cache, then fetch it with no session

82

A header the cache key ignores, such as X-Forwarded-Host, still changes the page, so one poisoned response is served from cache to everyone who asks after. Test behind a cache buster first

SSRF

4 chains

Three different doors into the same thing, the server making a request you chose.

83

Anything where you hand the server a URL and it fetches it, webhooks, imports, link previews, avatar by URL, third-party integrations, aimed at internal hosts and cloud metadata

84

Your input lands in HTML that a headless browser or renderer turns into a PDF, an iframe, image or redirect inside it is fetched server side, and the PDF shows you what came back

85

The server opens the file to resize or read it, ImageMagick, ExifTool, ffmpeg, an SVG with an external reference, and the parser fetches URLs or runs code that came inside the file

86

The framework builds absolute URLs from forwarding headers it never validates, so a crafted host or proto re-points the server's own fetch or rewrites the page that gets cached, no URL feature needed

Server-side

2 chains

Your input reaches code that runs on the server, through a merge or an archive the app trusts.

87

A server-side merge lets you write onto the object prototype, harmless probes such as a change in JSON indentation confirm it blind, then a gadget that reads options from the prototype turns it into privilege escalation or code execution

88

The importer unpacks an archive you supplied and follows the links inside it, so a symlink makes the server read files outside its import folder, keys and configs that lead to the rest