Skip to content

Instantly share code, notes, and snippets.

@jeffikus
Created October 1, 2014 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffikus/c920cbcc1581b0d974d5 to your computer and use it in GitHub Desktop.
Save jeffikus/c920cbcc1581b0d974d5 to your computer and use it in GitHub Desktop.
SQL Injection example 2
<?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