maxfire2008 / iview-rss

Use of both safe and unsafe HTTP methods for a view PY-S6007
Security
Major
2 years ago2 years old
Allowing both safe and unsafe methods for a view is unsecure
198        return "501", 501
199
200
201@app.route("/deploy/<key>", methods=["GET", "POST"])202def deploy(key):
203    if key == CONFIG.DEPLOY_KEY:
204        # git pull return output