From dba925cf4dedf96da920fba9f16336cbccd86532 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 20 Feb 2021 09:58:27 -0500 Subject: [PATCH] webhooks: fix oversight in payload verification --- hubsrht/blueprints/webhooks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hubsrht/blueprints/webhooks.py b/hubsrht/blueprints/webhooks.py index 6ce6361..d843d5a 100644 --- a/hubsrht/blueprints/webhooks.py +++ b/hubsrht/blueprints/webhooks.py @@ -339,6 +339,7 @@ def todo_ticket(tracker_id): @webhooks.route("/webhooks/build-complete/
", methods=["POST"]) def build_complete(details): payload = verify_request_signature(request) + payload = json.loads(payload.decode('utf-8')) details = fernet.decrypt(details.encode()) if not details: return "Bad payload", 400