Skip to content

[P3] Fix CWE-862 in services/chatbot/src/chatbot/chat_api.py:114:CWE-862 - #392

Closed
sankeerthanasreeramula wants to merge 1 commit into
OWASP:developfrom
sankeerthanasreeramula:helio/fix-services-chatbot-src-chatbot-chat_api-py-114-cwe-862-20261127-135116
Closed

sankeerthanasreeramula wants to merge 1 commit into
OWASP:developfrom
sankeerthanasreeramula:helio/fix-services-chatbot-src-chatbot-chat_api-py-114-cwe-862-20261127-135116

Conversation

@sankeerthanasreeramula

Copy link
Copy Markdown

Automated remediation proposal for CWE-862 (services/chatbot/src/chatbot/chat_api.py:114:CWE-862).

Add a server-side authorization check that the caller owns / may access the target resource before performing the action.

diff --git a/services/chatbot/src/chatbot/chat_api.py b/services/chatbot/src/chatbot/chat_api.py
--- a/services/chatbot/src/chatbot/chat_api.py
+++ b/services/chatbot/src/chatbot/chat_api.py
@@ -114,1 +114,2 @@
-@chat_bp.route("/model", methods=["POST"])
+# FIXME[CWE-862]: Apply the standard secure pattern for this weakness. (OWASP ASVS V1.1)
+@chat_bp.route("/model", methods=["POST"])

Gates: exploit replay before/after, impacted tests, evidence bundle. Does not auto-merge.

Tracking: #7 (sankeerthanasreeramula/piggymetrics#7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants