mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Except for dataflow (where we have a lot of changes, and I don't want to introduce lots of merge conflicts right now).
15 lines
335 B
Python
15 lines
335 B
Python
from lxml import etree
|
|
from io import StringIO
|
|
from flask import Flask, request
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/xslt")
|
|
def bad():
|
|
xsltQuery = request.args.get('xml', '')
|
|
xslt_root = etree.XML(xsltQuery)
|
|
f = StringIO('<foo><bar></bar></foo>')
|
|
tree = etree.parse(f)
|
|
result_tree = tree.xslt(xslt_root) # Not OK
|