Skip to content

Instantly share code, notes, and snippets.

@Swalloow
Created March 12, 2017 12:18
Show Gist options
  • Save Swalloow/9b0b074fa0939ee9a339a9da39d066ea to your computer and use it in GitHub Desktop.
Save Swalloow/9b0b074fa0939ee9a339a9da39d066ea to your computer and use it in GitHub Desktop.
SQL Injection
@app.route("/user/<user_id>")
def show_user(user_id):
cur = db.cursor()
query = "SELECT * FROM user_table where user = %s"%user_id
c.execute(query)
return c.fetchall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment