PicoCTF-2022 Writeup
  • README
  • Binary Exploitation
    • buffer overflow 1
    • buffer overflow 2
    • buffer overflow 3
    • flag leak
    • function overwrite
    • ropfu
    • stack cache
    • x-sixty-what
  • Cryptography
    • basic-mod1
    • basic-mod2
    • diffie-hellman
    • morse-code
    • NSA Backdoor
    • Sequences
    • substitution
    • Sum-O-Primes
    • Very Smooth
  • Forensics
    • Operation Oni
    • Operation Orchid
    • SideChannel
    • St3g0
    • Torrent Analyze
  • Reverse Engineering
    • Bbbbloat
    • Keygenme
    • unpackme
    • Wizardlike
  • Web Exploitation
    • Forbidden Paths
    • noted
    • Roboto Sans
    • SQLiLite
Powered by GitBook
On this page
  • Challenge
  • Solution
  • Flag

Was this helpful?

Edit on GitHub
  1. Web Exploitation

SQLiLite

Challenge

Can you login to this website?

Solution

This is a basic SQL injection. Using the payload admin' -- (because the hint says to sign in as the admin user) and anything for the password logs in. After logging in, this is shown:

username: admin' --
password: asd
SQL query: SELECT * FROM users WHERE name='admin' --' AND password='asd'

Logged in! But can you see the flag, it is in plainsight.

The flag is in the source code.

Flag

picoCTF{L00k5_l1k3_y0u_solv3d_it_9b0a4e21}

PreviousRoboto Sans

Last updated 3 years ago

Was this helpful?