BUUCTF The mystery of ip

  • PHP's SSTI template injection
  • Go inside and you see a beautiful page
  • You can't help but order Flag
  • It tells you your IP address, but it doesn’t seem to be my IP address, right?
  • Then I clicked HINT
    Insert picture description here
  • Look at the source code and find nothing. Look at wp
  • Found weird in X-Forwarded-For
  • Grab a package and add X-Forwarded-For: { {127.0.0.1}}
    Insert picture description here
  • Learned python template injection to mess around a few times
  • {system("ls /")}
    Insert picture description here
  • {system("cat /flag")}
    Insert picture description here

Guess you like

Origin blog.csdn.net/CyhDl666/article/details/114371798