Property
Languagepython
Severitylow
CWECWE-134: Use of Externally-Controlled Format String
Confidence LevelLow
Impact LevelMedium
Likelihood LevelLow

Description#

User input is being directly inserted into a string with .format() and then used to build a request URL in a Flask API controller. This allows untrusted data to shape outgoing requests, which can introduce security risks.

Impact#

An attacker could manipulate the API to send requests to unintended or malicious destinations, potentially enabling server-side request forgery (SSRF), data leakage, or unauthorized access to internal services. This could compromise sensitive information or expose internal systems.