HackThisSite-realistic mission-2

Hritesh J
1 min readSep 28, 2021

Complete walkthrough of the realistic mission-2: Chicago American Nazi Party

We have to gain access to the administration page of the given website and post a message on the main page.

  • this link leads us to a login page
  • Now to get the administrator access we need the password, which will be saved in the database
  • so to get unauthorized things from a database we can use SQLi(SQL injection)
  • let’s try ' OR 1=1 -- in the username field.
  • what this does is

SELECT * FROM users WHERE username = ‘’ AND password = ‘’
SELECT * FROM users WHERE username = ‘’ OR 1=1 — AND password = ‘’
  • we can see that the password check gets commented out (by the --)
  • and we’re in!

Give this a 👏 if you found it useful!

--

--

Hritesh J

Hritesh J is a student pursuing undergraduate studies in CS. Loves cybersecurity and playing ctfs and writing about them. “learning one new thing every day.”