
[TOC]
ctfshow愚人杯 easy_ssti
考点:ssti漏洞(见笔记)
查看源码
下载这个文件
打开查看代码,分析可能在/hello/路径下存在ssti漏洞
12345678910111213141516from flask import Flaskfrom flask import render_template_string,render_templateapp = Flask(__name__)@app.route('/hello/')def hello(name=None): return render_template('hello.html',name=name)@app.route('/hello/<name>')def hellodear(name): if "ge" in name: return render_template_string('hello %s' % name) ...







