mitre-cyber-academy / 2018-Web-200b

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search History

Some websites store users searches in the database so that links to those searches are accessible later. This application emulates that functionality.

How to Solve

  1. Navigate to the homepage of the application and perform a search with the network tab open.
  2. Inspect the result. In the response body you will see a /searches/#num. This number increases every time you search.
  3. Browse directly to <url>/searches/1 and you will see the results from that search but you will not see the actual query run.
  4. Realize that the app is using json for some of its endpoints and browse directly to <url>/searches/1.json which will give you the actual query run, which in this case also contains the flag.

Flag

MCA{just_browsin'_my_search_history}

About

License:Apache License 2.0


Languages

Language:Ruby 72.5%Language:HTML 17.4%Language:JavaScript 5.2%Language:CSS 2.5%Language:Dockerfile 1.9%Language:CoffeeScript 0.5%