r/itsaunixsystem • • Feb 21 '19
[Prison Break] Hypertext Markup Language? No, HTML stands for Hack The MaiL (Getting someone elses emails with HTML code in Season 4 Episode 3)
1.2k
Upvotes
r/itsaunixsystem • • Feb 21 '19
15
u/Powdered_Abe_Lincoln Feb 22 '19
My boss thinks HTML is pronounced "Hotmail".
135
u/PawanYr Feb 21 '19
That's the HTML tag to create a form field, seemingly with default text of "Hack-GEN password" . . . wait a minute . . . IT'S GENIUS! They'll create a form field that tells him to give them his password so he can be hacked, and he'll just type in his password! A+ hacking skills.
36
u/scotty_o_cunt Feb 21 '19
Extrapoints for the unnecessary yet technically more consistent closing slash in the <br> tag. Makes you look even more like a professional.
57
u/[deleted] Feb 21 '19
HACK-[user]
9
u/tinverse Feb 22 '19
I recognize this is pretty different but on an old MMOs forums they removed the function to change your forum name. With URL manipulation I managed to guess what the page would be called. Then I tried changing my name and it didn't work. I looked at the HTML/CSS for the page and realized that the button to submit the request was disabled in HTML. So I reenabled it and it worked. Then I started playing with it and it didn't check if a name was in use. I didn't check if it sanitized entries for SQL injection attacks, but my guess is it did not.
16
u/[deleted] Feb 21 '19
Well...you can create fake login pages with HTML..and you’d be surprised how many people fall for this kind of scam.
6
u/MKorostoff Feb 22 '19
Without additional context it's hard to say, but this could plausibly be the entrypoint to a reverse shell. The basic logic would be:
In order for this attack to be possible, there have to be a whole bunch of vulnerabilities going on simultaneously on the target server, all of which should be avoidable by a competent server admin. For one, the web server would need to be running as root. For another, there would need to be an insecure upload form which allows php files to be uploaded, and also the web server configuration would need to permit code execution in the upload directory. The server would need to have shell_exec enabled. Finally, the system would need user accounts to live on the same physical server as the web application.
Taken together, it's unlikely that any given server would have ALL of these vulnerabilities, but if you scan enough machines, a few will (particularly if you are targeting your search to exclusively check machines with a specific, known vulnerability). This is what the "activate" button does—starts a scan through thousands of possibly exploitable domains, and, upon discovery of a vulnerable site, shows some message like "found vulnerable site, my_pwnable_site.com, would you like to attack?" at which point, the attacker clicks the "upload" button.
5
u/LucasCarioca Feb 21 '19
Is that php I see? Lol HackerPro!
3
u/hydargos123 Feb 21 '19
There's a lot of "hack", so it probably works
3
u/mosskin-woast Feb 22 '19
Jesus Christ I'm surprised the idiot who wrote this knew that 'echo' was a vaguely programming term
2
u/[deleted] Feb 21 '19
Could work in the context of a SQL injection. But it's not.
1
u/[deleted] Feb 22 '19
Looks like there's some PHP tags thrown in for good measure.
1
u/Naxurrus Feb 22 '19
Or they're 'with it' and have built an Electron app
1
u/Zulfurix Feb 22 '19
An input type of "HACK-GEN"? Jesus I wonder how that fares against your standard "Text" type
1
u/uncle-tacitus Feb 22 '19
TIL changing the html inputs to include the word HACK will let you hack them
very handy
1
u/vinceh121 Feb 22 '19
It looks like PHP I can see some <? ?>
1
u/[deleted] Feb 26 '19
I'm not sure what kind of a masochist would edit a minimified HTML file but ok
0
u/[deleted] Feb 21 '19
[deleted] — view deleted comment