Crack the Gate 1

Easy
Time Spent: 10 minutes
https://play.picoctf.org/practice/challenge/520

🧠 What I Practiced/Learned/Discovered

  • When a string seems strange, always try to find if it has been encoded

🔧 Tools used

Websites

Linux shell

  • curl

Steps

  1. Went on the website and tested a SQL injection
  2. Then went in the inspector to see if anything could help me
  3. Found something that was encoded Image
  4. Tried to identify the encoding here : https://www.dcode.fr/identification-chiffrement
    • Found it was probably aROT-13, decoded it
    • Got this : NOTE: Jack - temporary bypass: use header “X-Dev-Access: yes”
  5. Inspect the API call to reproduce it to curl
  6. Run curl -X POST -H "Content-Type: application/json" -H "X-Dev-Access: yes" -d '{"email": "ctf-player@picoctf.org"}' http://amiable-citadel.picoctf.net:53329/login and got the flag !!