דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/ctf-webWeb ו-bug bounty

ctf-web

⁨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⁩

v2026.10.14-ee0e0c54 התקנות⁦+4⁩ ב-7 ימים27 כוכביםMITסונכרן לפני 22 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/ctf-web

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
ZvylcYXAkJ…EwFXbDCg==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה1ebede65…313aa3e3
1ebede65b50d…8d0a313aa3e3קובץ אחד · ⁦3.2 KB⁩
סריקהבינוני3 ממצאים
  • קישור לכתובת IP ישירהSKILL.md:66
  • קישור לכתובת IP ישירהSKILL.md:66
  • קישורים לדומיינים חיצוניים
לסריקה המלאה
מקורgithub.com/NoorQureshi/security-skills/tree/main/skills/ctf/ctf-web@ee0e0c5

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

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

  1. Enumerate the obvious first (5 minutes). curl -sS -D- the root; read every HTML comment, JS file, cookie, and header. Hit robots.txt, /sitemap.xml, common admin paths, and run a quick ffuf -w raft-small-words -u <url>/FUZZ. Check the HTTP methods (OPTIONS, try PUT/POST where GET works). CTF apps hide routes in comments and robots more than real ones.
  2. 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).
    • .git exposed: 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.
  3. 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 skip strcmp/md5 checks — ?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, eval on JSON fields, NoSQL injection ({"$gt":""} on login forms).
  4. 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 the role field, handle the MAC with crypto-oracle-attacks.
  5. 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, and gopher:// to hit internal Redis/MySQL (web-ssrf, web-ssrf-gopher-redis-rce). In CTF, the internal service on a weird port is the challenge — scan 127.0.0.1 ports through the SSRF.
  6. 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/eval challenges filter obvious words; build strings dynamically ($_GET['x']($_GET['y']) with x=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 /flag readable only by root means a second stage: look for setuid binaries, cron, or a SUID flag-reader you must exploit (privesc domain).
  • 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.

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםכןכן
כותב קבציםכןכן
מריץ פקודות shellלאלא
משתמש ברשתכןכן
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

  1. בינוניתקישור · קישור לכתובת IP ישירהSKILL.md:66
  2. בינוניתקישור · קישור לכתובת IP ישירהSKILL.md:66
  3. מידעקישור · קישורים לדומיינים חיצוניים

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.10.14-ee0e0c513 בנוב׳ 2026ee0e0c51ebede65חתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login