CTF刷題記錄-Web-[BJDCTF2020]The mystery of ip
來源:
buuctf
題目:
https://github.com/BjdsecCA/BJDCTF2020

WP:
點擊flag:

點擊hint:

要獲得ip,可能利用了Referer、X-Forwarded-For、client-ip,用bp測試一下可以發(fā)現(xiàn)是client-ip:

使用127.0.0.1沒獲得更高權限,嘗試拼接命令執(zhí)行也不行,測試ssti發(fā)現(xiàn)有響應:

執(zhí)行命令system("ls /")和system("cat /flag")得到flag:


flag{095bd8e8-7b7f-422a-8df4-43e5818be79d}