소스 정보
- 저장소
- ersinkoc/security-check
- 최근 소스 활동
- 2026년 4월 8일 21:51
- 감지된 SKILL.md 언어
- 영어
- 스타
- 56
- 포크
- 5
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ersinkoc/security-check --skill sc-ssti명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Comprehensive AI-powered security scanning suite with 48 skills covering OWASP Top 10, 7 language-specific deep scanners (Go, TypeScript, Python, PHP, Rust, Java, C#), supply chain analysis, infrastructure-as-code scanning, and 3000+ checklist items. Use when you need to run a security audit, find vulnerabilities, scan a PR for security issues, or perform a penetration test on a codebase.
C#/.NET-specific security deep scan
Go-specific security deep scan
SOC 직업 분류 기준
SKILL.md 표시 중
| name | sc-ssti |
| description | Server-Side Template Injection detection across all major template engines |
| license | MIT |
| metadata | {"author":"ersinkoc","category":"security","version":"1.0.0"} |
Detects server-side template injection vulnerabilities where user input is embedded into template strings before compilation/rendering, allowing attackers to execute arbitrary code on the server. Covers Jinja2, Twig, Freemarker, Velocity, Pug, Handlebars, ERB, Mako, Thymeleaf, and Go templates.
Called by sc-orchestrator during Phase 2 when template engines are detected.
**/*.py, **/*.php, **/*.java, **/*.rb, **/*.js, **/*.ts, **/*.go,
**/templates/*, **/views/*, **/*template*, **/*render*, **/*view*
# Python/Jinja2
"render_template_string(", "Template(", "Environment(",
"from_string(", "jinja2.Template("
# PHP/Twig
"$twig->createTemplate(", "Twig\\Template", "renderString("
# Java/Freemarker/Velocity/Thymeleaf
"new Template(", "freemarker", "VelocityEngine",
"templateEngine.process(", "StandardDialect"
# Ruby/ERB
"ERB.new(", "render inline:", "Erubis"
# JavaScript/Pug/Handlebars/EJS
"pug.render(", "pug.compile(", "Handlebars.compile(",
"ejs.render(", "nunjucks.renderString("
# Go
"template.New(", "text/template", "html/template",
".Parse(", "template.Must("
render_template_string() instead of render_template() in FlaskThe vulnerability occurs when user input becomes part of the TEMPLATE CODE, not the template DATA:
# SAFE: User input as template data (parameterized)
render_template('hello.html', name=user_input)
# VULNERABLE: User input as template code
render_template_string(f"Hello {user_input}")
# If user_input = "{{7*7}}", the template engine evaluates it as 49
# If user_input = "{{config.items()}}", it leaks Flask config
| Engine | Detection Probe | Code Execution |
|---|---|---|
| Jinja2 | {{7*7}} → 49 | {{config.__class__.__init__.__globals__['os'].popen('id').read()}} |
| Twig | {{7*7}} → 49 | {{_self.env.registerUndefinedFilterCallback("system")}}{{_self.env.getFilter("id")}} |
| Freemarker | ${7*7} → 49 | <#assign ex="freemarker.template.utility.Execute"?new()>${ex("id")} |
| Velocity | $class.inspect("java.lang.Runtime") | Via reflection chain |
| Pug | #{7*7} → 49 | Via code blocks |
| ERB | <%= 7*7 %> → 49 | <%= system("id") %> |
| Mako | ${7*7} → 49 | ${__import__("os").popen("id").read()} |
| Thymeleaf | [[${7*7}]] → 49 | Via SpEL: ${T(java.lang.Runtime).getRuntime().exec("id")} |
# VULNERABLE: User input in template string
@app.route('/greeting')
def greeting():
template = f"Hello, {request.args.get('name', 'World')}!"
return render_template_string(template)
# SAFE: User input as template variable
@app.route('/greeting')
def greeting():
return render_template_string(
"Hello, {{ name }}!",
name=request.args.get('name', 'World')
)
// VULNERABLE: text/template with user input in template string
tmpl := fmt.Sprintf("Hello, %s!", userInput)
t, _ := template.New("").Parse(tmpl) // text/template does not escape!
// SAFE: html/template with user input as data
t, _ := htmltemplate.New("").Parse("Hello, {{.Name}}!")
t.Execute(w, map[string]string{"Name": userInput})
{{7*7}} as input would render 49, confirming template evaluation.render_template() instead of render_template_string().render_template('page.html', data=user_input) is safe{% extends %} and {% include %} with static paths