ctf-web
Skill26 starsChanged 32 days agoMITView on GitHub
CTF web challenge playbook — the recurring shapes jeopardy web challenges take: source disclosure (.git, backups, flask debug), SSTI/SSRF in their CTF forms, PHP quirks (type juggling, wrappers, filters), cookie/JWT games, and chained primitives to read /flag. Load on any CTF challenge whose handout is a URL. Signals: "web" category, flask/werkzeug or PHP banner, /flag or flag.txt on the box, robots.txt, provided app.py/index.php source, JWT or flask session cookie.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Huoxing999/ctf-skillstheir own version, first seen Oct 25, 2026
- NoorQureshi/roninword for word, first seen Oct 11, 2026
- NoorQureshi/security-skillsword for word, first seen Oct 11, 2026
- MateoBogo/CLEAVEtheir own version, first seen Apr 23, 2026
- ljagiello/ctf-skillstheir own version, first seen Mar 28, 2026
- naravid19/claude-ctf-skillstheir own version, first seen Mar 28, 2026
Other versions6 projects use a version of this.
Word for word · 2
- NoorQureshi/security-skills★ 27100% same
- NoorQureshi/ronin★ 26100% same
Edited · 0
None found.
Wrote their own version · 4
- ljagiello/ctf-skills★ 3.7ksame name
- naravid19/claude-ctf-skills★ 5same name
- Huoxing999/ctf-skills★ 4same name
- MateoBogo/CLEAVE★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository207 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ad-adcsSkill
- ad-dacl-abuseSkill
- ad-delegation-abuseSkill
- ad-kerberoastingSkill
- ad-pivot-arsenalSkill
- ai-agent-tool-abuseSkill
- ai-insecure-output-handlingSkill
- ai-jailbreakSkill
- ai-llm-dosSkill
- ai-mcp-securitySkill
- ai-model-extractionSkill
- ai-prompt-injectionSkill
- ai-rag-poisoningSkill
- ai-sensitive-data-disclosureSkill
- ai-supply-chainSkill
- ai-system-prompt-leakageSkill
- api-auth-attacksSkill
- api-bolaSkill
- api-fuzzingSkill
- api-graphqlSkill
- api-grpcSkill
- api-mass-assignmentSkill
- api-mongo-agg-facet-bypassSkill
- api-testing-checklistSkill
- api-versioningSkill
- automation-browserSkill
- automation-nuclei-templatesSkill
- automation-recon-pipelineSkill
- cloud-azureSkill
- cloud-container-escapeSkill
- cloud-docker-api-abuseSkill
- cloud-docker-registrySkill
- cloud-gcpSkill
- cloud-iam-privescSkill
- cloud-imds-ssrfSkill
- cloud-kubernetesSkill
- cloud-s3-exposureSkill
- code-review-cicdSkill
- code-review-cppSkill
- code-review-dangerous-sinksSkill
- code-review-dotnetSkill
- code-review-goSkill
- code-review-iacSkill
- code-review-javaSkill
- code-review-methodologySkill
- code-review-nodejsSkill
- code-review-phpSkill
- code-review-pythonSkill
- code-review-rubySkill
- code-review-rustSkill
- code-review-secrets-detectionSkill
- code-review-soliditySkill
- crypto-oracle-attacksSkill
- crypto-rsa-attacksSkill
- ctf-cryptoSkill
- ctf-forensicsSkill
- ctf-methodologySkill
- ctf-pwnSkill
- The first 60 shown.
The file
Files
CTF web challenges
When it applies
The handout is a URL (sometimes plus source). The goal is almost always to read a flag file
(/flag, /flag.txt, an env var, or a DB row) — so every bug you find should be steered toward
read a file, run a command, or become admin. This skill is the CTF routing layer; work the
deep techniques with web-ssti, web-ssrf, web-sqli, web-lfi-path-traversal, web-auth-jwt,
web-deserialization, web-command-injection, web-file-upload.
Why it works
CTF web challenges strip an app to one intended bug plus decorations, so the surface is small and the bug is findable by enumeration, not luck. Provided source turns black-box guessing into reading comprehension; the framework banner (Flask/PHP/Express) predicts the bug class before you send a request.
Method
- Enumerate the obvious first (5 minutes).
curl -sS -D-the root; read every HTML comment, JS file, cookie, and header. Hitrobots.txt,/sitemap.xml, common admin paths, and run a quickffuf -w raft-small-words -u <url>/FUZZ. Check the HTTP methods (OPTIONS, tryPUT/POSTwhere GET works). CTF apps hide routes in comments and robots more than real ones. - Grab source if it exists — it usually does.
- Provided zip /
Dockerfile: read it; the bug is visible, and the Dockerfile tells you the flag's location and any sandbox (read-only fs, seccomp). .gitexposed:git-dumper <url>/.git out/then read history (recon-github-code-leaks).- Backups:
index.php~,index.php.bak,.index.php.swp,app.py.bak— ffuf for them. - PHP filters as source oracle:
?page=php://filter/convert.base64-encode/resource=index(web-lfi-path-traversal). - Flask/Werkzeug debugger page exposed → the PIN is crackable from machine-id + boot-id + username (leak them via an LFI) or is printed in console output you can reach.
- Provided zip /
- Work the framework's favorite bug:
- Flask/Jinja2 → SSTI:
{{7*7}}then climb to{{ self.__init__.__globals__ }}/config/cycler.__init__.__globals__.os.popen('cat /flag').read(). Filter bypasses:|attr(), request-args gadgets, hex/octal string building (web-ssti,web-python-sandbox-escape). - PHP → the quirks are the challenge: loose comparison type juggling (
==with"0e..."magic hashes,0 == "password", array params to skipstrcmp/md5checks —?a[]=1), wrapper chains (php://filter,data://,phar://),preg_replace /e, unserialize with a provided class → POP chain (web-deserialization). - Node/Express → prototype pollution (
web-prototype-pollution), SSTI in EJS/Pug,evalon JSON fields, NoSQL injection ({"$gt":""}on login forms).
- Flask/Jinja2 → SSTI:
- Play the cookie games. Flask session cookie →
flask-unsign --decode, brute the secret (flask-unsign --unsign --wordlist rockyou.txt) then re-sign{'is_admin': True}. JWT →alg:none, RS256→HS256 confusion with a reachable public key, weak HMAC secret brute (web-auth-jwt). Homegrown base64/hex cookies → decode, flip therolefield, handle the MAC withcrypto-oracle-attacks. - SSRF, the CTF shape. Any URL fetcher (webhook tester, PDF renderer, image proxy) →
http://127.0.0.1/for internal-only routes,http://169.254.169.254/only when the Docker setup hints cloud,file:///flag, andgopher://to hit internal Redis/MySQL (web-ssrf,web-ssrf-gopher-redis-rce). In CTF, the internal service on a weird port is the challenge — scan127.0.0.1ports through the SSRF. - Chain to the flag. One primitive rarely suffices: LFI → source → secret → signed cookie →
admin panel → SSTI → RCE →
cat /flag. Treat each confirmed bug as a key that unlocks the next stage (exploit-chaining).
Gotchas
{{7*7}}rendering as{{7*7}}doesn't rule out SSTI — some challenges only evaluate in error pages, emails, or PDF exports. Try the sink contexts, and try${7*7},#{7*7},<%= 7*7 %>for other engines.- PHP
assert/evalchallenges filter obvious words; build strings dynamically ($_GET['x']($_GET['y'])withx=system&y=cat /flag) instead of fighting the blocklist. - Provided source != deployed source occasionally — verify a behavior against the live app before building an exploit on the reading.
- The flag may need root — RCE as www-data with
/flagreadable only by root means a second stage: look for setuid binaries, cron, or a SUID flag-reader you must exploit (privescdomain). - Rate-limited login / captcha in CTF usually hides race conditions (
web-race-conditions) or SQLi in the login query, not a brute-force task.
Verify success
The flag string in the correct format, read from the target (file, env, or DB) — not a local
reproduction. If you got RCE, id; cat /flag output is the proof.
References
Deep techniques: web-ssti, web-ssrf, web-auth-jwt, web-deserialization,
web-lfi-path-traversal, web-python-sandbox-escape, web-command-injection, web-sqli;
source-leak hunting: recon-content-discovery, recon-github-code-leaks; token attacks:
crypto-oracle-attacks. Triage via ctf-methodology.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

