Many GraphQL servers only expect application/json, and developers assume that makes cross-site requests impossible because JSON needs a CORS preflight. But some servers (Apollo with CSRF prevention turned off, graphql-http style handlers, custom middleware) also accept other con…
If an avatar or attachment upload accepts .svg, upload this file and open the returned file URL directly in your browser: <svg xmlns="http://www.w3.org/2000/svg"><script>alert(document.domain)</script></svg> The app usually checks the extension or MIME type and assumes an image…
Many APIs let a framework middleware (Express method-override, some Spring and .NET setups) read X-HTTP-Method-Override, X-Method-Override, or a _method body/query field and treat the request as if it used that HTTP verb, even though the real method on the wire stayed GET or POS…
Keys in page source or JS bundles that start with AIza are often meant for Maps only, but the key is just an identifier. What decides impact is which APIs the project enabled for it and whether a restriction (HTTP referrer, IP, or API list) is set. Developers often skip the rest…
Decompile the target APK with jadx (or just unzip and strings) and grep for firebaseio.com or firebasedatabase.app. Apps often hardcode the database URL even though access should be gated by Firebase Auth rules. Once you have the host, request the root with the .json suffix: GET…
Many apps validate that a CSRF token is a token they issued, not that it was issued to this session. If so, the token protects nothing, because an attacker can fetch a valid one from their own account and place it in a forged form. Use two test accounts, A and B. Log in as A and…
PKCE only protects a public client if the authorization server refuses to redeem a code that was issued without a challenge. Many servers treat PKCE as optional and only check the verifier when a challenge happens to be present. Start the flow with your own test account, but lea…
A reflected 49 from {{7*7}} only tells you some engine evaluated your input. Send a second probe, {{7*'7'}}, in the same parameter. Jinja2 repeats the string and returns 7777777; Twig converts it to a number and returns 49. If neither works, try ${7*7} (Freemarker, Velocity, Thy…
When an app moved from /api/v1/ to /api/v2/, the old prefix is often still routed on the backend even though the frontend never calls it. Take an authenticated endpoint from the current version, for example GET /api/v2/orders/482/invoice, and replay it against the old prefix: GET
Cache poisoning only works when the response changes because of an input the cache does not include in its key. Test that safely first: add a unique query parameter so you only ever poison your own cache entry. GET /?cb=7f3a91 HTTP/1.1 Host: target.example X-Forwarded-Host: cana…
When you find AWS credentials in a JS bundle, repo or config file, the first call to make is the one that needs no IAM permissions and changes nothing: AWS_ACCESS_KEY_ID=<access-key-id> AWS_SECRET_ACCESS_KEY=<secret> aws sts get-caller-identity If the key is temporary (it starts…
When a subdomain's CNAME points at <name>.s3.amazonaws.com or <name>.s3-website-<region>.amazonaws.com, request it and look for the S3 error NoSuchBucket (the XML error body contains <Code>NoSuchBucket</Code> and <BucketName>). dig +short CNAME assets.example-target.test curl -si
Pick an endpoint that increments or decrements a limited resource once per use: a one-time coupon, a referral credit, a "redeem points" action, or a vote. Send the same authenticated request 20-30 times at once instead of one at a time, keeping every header and body byte identic…
Production bundles are minified, but many sites still ship their source maps. For every script the target loads, request the same URL with .map on the end (app.4f2c1.js becomes app.4f2c1.js.map), and look at the last line of the bundle for a //# sourceMappingURL= comment that na…