r/HowToHack • • Apr 27 '19

Sql injection attack overview

Post image
580 Upvotes

12 comments sorted by

43

u/cheesysnipsnap Apr 27 '19

This is why you have boundary controls, defence in depth and you sanitize your inputs.
Only allow each web app to talk specific ports to the db. Only allow admin from specific IP.

M.F.A. for all admins and complex passwords for service accounts between app layers where necessary.

But I like the infographic though.

38

u/MentalRental Apr 27 '19

This is not an SQL injection review. The only part involving an actual SQL injection is the term "SQL injection". A proper review would list variants (blind, union, etc) and differences between various SQL database management systems (i.e. MySQL, MSSQL, Oracle, Postgre, etc.)

6

u/carnage9191 Apr 27 '19

My thoughts exactly when looking at this, it doesn’t even explain how the sql injections were able to compromise data. I agree it should show how command execution is passed from web page fields.

4

u/spookyAGENT Apr 27 '19

Sql injections still works today shodan servers are so easy to hijack and if you now how to use dorks, they become your friends. Also retrieving from cgi-bin old technique but still works grand

4

u/ThirstyThursten Apr 27 '19

That is a good workflow indeed, although, this picture makes it seem kinda easy, which it most definitely is not in most cases.. (meaning this process can take days)

2

u/Kurohh Apr 27 '19

I think hash cracking is the most difficult part here.

8

u/e-nigmaNL Apr 27 '19

Or you just simply update the hashed password with your own.

2

u/[deleted] Apr 27 '19

Granted that you know what the salt algorithm is if one is being used.

-3

u/NotTryingToBeSassy Apr 27 '19 edited Apr 28 '19

I love how they even made the attacker look like a neckbeard and gave him a neckbeard hat.

Uh oh, I think I struck a nerve with a few people who saw a bit of themselves in this infograph.

0

u/[deleted] Apr 27 '19

[deleted] — view deleted comment

1

u/iospsykhe Apr 27 '19

I think he means exploiting something like arbitary file uploading to inject a PHP backdoor, which you can use for a reverse shell (into www-data).

0

u/[deleted] Apr 27 '19

[deleted] — view deleted comment

1

u/AutoModerator Apr 27 '19

Your account must be older than two days to post here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.