Jump to content

SQL injection... Web programming with Databases? Watch this

Ethnod
Never trust a man, who, when left alone with a tea cosey... Doesn't try it on. Billy Connolly
Marriage is a wonderful invention: then again, so is a bicycle repair kit. Billy Connolly
Before you judge a man, walk a mile in his shoes. After that, who cares? He's a mile away and you've got his shoes. Billy Connolly
Link to comment
Share on other sites

Link to post
Share on other sites

Computerfile

Corsair 600T White | Gigabyte Z77-UD3H | Intel Core i5-2500k | 8GB Gskill Ares@1600MHz | Gigabyte G1 GTX970 | OCZ ZT 550 | Western Digital Caviar Blue 500GB | Western Digital Caviar Black 1TB | Samsung 840 EVO 250GB (boot) | Full Custom Loop | NZXT HUE

Link to comment
Share on other sites

Link to post
Share on other sites

Welcome to the Internet!
While you are on the SQL Injection train, which, by the way, can be solved with stored procedures and input sanitation, you might want to look at Cross Site Scripting, PHP file/shell/eval injection or overflows (stack smashing, heap/BSS overflow, index overflow, format overflow) in, for instance, CGI scripts (or any C program).

And then you can move on to covert channels, sniffers, ARP spoofing, MAC flooding, IP spoofing, TCP hijacking, SYN flooding, ICMP "SMURF", DoS with Chargen and Echo, ping-of-death, teardrop attack, land attack, the Kasminsky DNS attack.

And then you can move on to flaws in encryption or hashing mechanisms (replay attacks, sign and cipher order that can lead to message stealing, key management and distribution, granting perfect forward secrecy), weaknesses in authentication mechanisms or wireless protocols, ...

 

The world of computer and network security is huge, and there are new vulnerabilities being discovered at the same pace, or even faster, than new security technologies are coming out. That's one of the reasons why it's not sufficient to have programming (read coding) skills, you need to know much more than a couple of languages to be able to develop a secure piece of software and make it available to the world via the internet.

Link to comment
Share on other sites

Link to post
Share on other sites

I find they don't really teach security in school.  In both web development and my database class, I saw teacher examples of exploitable code....it made me cry inside.

 

It is just a shame that the "easier" way seems to always be the exploitable way

0b10111010 10101101 11110000 00001101

Link to comment
Share on other sites

Link to post
Share on other sites

Prepared Statements and generic database interfaces like PDO address these issues, and there's one simple rule with PHP(or any language that is not auto-magically sanitizing your data) ... anything coming from user input treat it as if it were tainted, regex the shit out of it length checks ect and that will minimize the risk even not using prepared statements.

 

 

-- note i wrote this before the video ended the guy does talk about it kinda :P, i wouldn't really call it a hack its basically using the database(depending on implementation) to process the input logic rather then the script langue because it runs on the sql server(you issue a command to prepare the statement then to ingest data).

Link to comment
Share on other sites

Link to post
Share on other sites

I saw this when it came out. I'm currently in the process of building a website to show of my personal works and views in the tech world. Looks like I have a long road to go to make my site secure and well built.

My rig: 2600k(4.2 GHz) w/ Cooler Master hyper 212+, Gigabyte Z68-UD3H-B3, Powercolor 7870 xt(1100/1500) w/AIO mod,

8GB DDR3 1600, 120GB Kingston HyperX 3K SSD, 1TB Seagate, Antec earthwatts 430, NZXT H2

Verified max overclock, just for kicks: http://valid.canardpc.com/show_oc.php?id=2609399

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×