Created
October 1, 2014 22:22
-
-
Save jeffikus/c920cbcc1581b0d974d5 to your computer and use it in GitHub Desktop.
SQL Injection example 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wpdb; | |
$ID = "'; SELECT * FROM wp_users WHERE 1 = '1"; | |
$sql = "SELECT post_title from $wpdb->posts WHERE ID = '$ID';"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment