Active
Project:
Security Examples
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2016 at 10:32 UTC
Updated:
3 Nov 2016 at 10:35 UTC
Jump to comment: Most recent
The current SQL injection demo throws a PDO error, but I couldn't get it to inject SQL. Nathan figured out a way during a recent CharDUG meeting. See below
CREATE TABLE `users_test` (
`uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Primary Key: Unique user ID.',
`name` varchar(60) NOT NULL DEFAULT '' COMMENT 'Unique user name.'
)
in the text_field, i insert --> 1; DROP TABLE users_test
Comments
Comment #2
shrop commented