mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Merge pull request #2664 from RasmusWL/python-fix-redirect-example
Python: Remove unused variable in example for py/url-redirection
This commit is contained in:
@@ -4,5 +4,5 @@ app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
target = files = request.args.get('target', '')
|
||||
target = request.args.get('target', '')
|
||||
return redirect(target, code=302)
|
||||
|
||||
@@ -6,7 +6,7 @@ app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
target = files = request.args.get('target', '')
|
||||
target = request.args.get('target', '')
|
||||
if target == VALID_REDIRECT:
|
||||
return redirect(target, code=302)
|
||||
else:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
edges
|
||||
| test.py:7:22:7:33 | dict of externally controlled string | test.py:7:22:7:51 | externally controlled string |
|
||||
| test.py:7:22:7:33 | dict of externally controlled string | test.py:7:22:7:51 | externally controlled string |
|
||||
| test.py:7:22:7:51 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
|
||||
| test.py:7:22:7:51 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
|
||||
| test.py:7:14:7:25 | dict of externally controlled string | test.py:7:14:7:43 | externally controlled string |
|
||||
| test.py:7:14:7:25 | dict of externally controlled string | test.py:7:14:7:43 | externally controlled string |
|
||||
| test.py:7:14:7:43 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
|
||||
| test.py:7:14:7:43 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
|
||||
#select
|
||||
| test.py:8:21:8:26 | target | test.py:7:22:7:33 | dict of externally controlled string | test.py:8:21:8:26 | externally controlled string | Untrusted URL redirection due to $@. | test.py:7:22:7:33 | Attribute | a user-provided value |
|
||||
| test.py:8:21:8:26 | target | test.py:7:14:7:25 | dict of externally controlled string | test.py:8:21:8:26 | externally controlled string | Untrusted URL redirection due to $@. | test.py:7:14:7:25 | Attribute | a user-provided value |
|
||||
|
||||
@@ -4,7 +4,7 @@ app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
target = files = request.args.get('target', '')
|
||||
target = request.args.get('target', '')
|
||||
return redirect(target, code=302)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user