{"id":20493875,"url":"https://github.com/qeeqbox/server-side-template-injection","last_synced_at":"2026-03-06T16:33:01.349Z","repository":{"id":104219172,"uuid":"581976664","full_name":"qeeqbox/server-side-template-injection","owner":"qeeqbox","description":"A threat actor may alter the template syntax on the vulnerable target to execute commands","archived":false,"fork":false,"pushed_at":"2024-01-29T00:58:04.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T17:51:53.580Z","etag":null,"topics":["infosecsimplified","injection","qeeqbox","server","side","template","vulnerability"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qeeqbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-25T06:02:05.000Z","updated_at":"2023-06-20T18:57:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"fda231eb-9d23-4939-b172-095931ae0e15","html_url":"https://github.com/qeeqbox/server-side-template-injection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qeeqbox/server-side-template-injection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fserver-side-template-injection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fserver-side-template-injection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fserver-side-template-injection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fserver-side-template-injection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qeeqbox","download_url":"https://codeload.github.com/qeeqbox/server-side-template-injection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fserver-side-template-injection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infosecsimplified","injection","qeeqbox","server","side","template","vulnerability"],"created_at":"2024-11-15T17:37:12.908Z","updated_at":"2026-03-06T16:32:56.337Z","avatar_url":"https://github.com/qeeqbox.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/server-side-template-injection/main/server-side-template-injection.png\"\u003e\u003c/p\u003e\n\nA threat actor may use a native template syntax on the vulnerable target to execute commands\n\n## Example #1\n1. Threat actor sends a native template syntax to a vulnerable target that uses a template engine\n2. The target process the syntax and executes the result\n\n## Code\n#### Target-Logic \n```py\n@app.route('/welcome', methods=['GET'])\ndef welcome():\n  user = request.args.get('user')\n  template = f\"\u003ch1\u003eWelcome, {user}!\u003c/h1\u003e\"\n  return render_template_string(template)\n```\n\n#### Target-In\n```\n{{1+1}}\n```\n\n#### Target-Out\n```\nWelcome, 4\n```\n\n## Impact\nHigh\n\n## Names\n- Server Side Template Injection\n- SST injection\n\n## Risk\n- Command execution\n\n## Redemption\n- Input validation\n- Logic-less\n\n## ID\nE0679353-0BB6-404B-A6CC-6F6305FF118C\n\n## References\n- [owasp](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server_Side_Template_Injection)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Fserver-side-template-injection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeeqbox%2Fserver-side-template-injection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Fserver-side-template-injection/lists"}