Skip to content

Instantly share code, notes, and snippets.

@jeffikus
Created October 1, 2014 22:21
Show Gist options
  • Save jeffikus/87b31c77cccbb89fcaa1 to your computer and use it in GitHub Desktop.
Save jeffikus/87b31c77cccbb89fcaa1 to your computer and use it in GitHub Desktop.
SQL Injection example 1
<?php
global $wpdb;
$ID = $_GET['ID'];
$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