Skip to content

Commit

Permalink
Create tainted.py
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopysecurity authored Oct 2, 2022
1 parent a9f0fbe commit 2666baf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Command Injection/tainted.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import os
from flask import Flask, request
app = Flask(__name__)

# curl -X GET "http://localhost:5000/tainted7/touch%20HELLO"
@app.route("/tainted7/<something>")
def test_sources_7(something):

os.system(request.remote_addr)

return "foo"

if __name__ == "__main__":
app.run(debug=True)

0 comments on commit 2666baf

Please sign in to comment.