What
A simple, one-page site.
Difficulty: Trivial
Flag0
Hint0: Take a look at the source for the page
Hit F12 and check Elements tab. Check all sources of the page, even <head>
and <style>
.
Hint1: Does anything seem out of the ordinary?
There is a background-image added to the body element in <style>
, but we can’t see it rendered.
Hint2: The page looks really plain
Is the image even loading? Is it available (Status 200)?
Hint3: What is that image?
Open the image on a new tab.
If you download the image and open it with Chrome, you’ll only see a white square. If you try to open it with an image viewer, it will throw an error.
Let’s create a copy from the image and change the file extension from .png
to .txt
. Now you can open the file with a simple text editor to see your flag.
Takeaway(s)
- Always check html, css, js sources for mistakes, forgotten comments and other weird stuff