Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerabilities Dashboard - Code #15

Open
mantel-group-nullify bot opened this issue Aug 25, 2024 · 0 comments
Open

Vulnerabilities Dashboard - Code #15

mantel-group-nullify bot opened this issue Aug 25, 2024 · 0 comments

Comments

@mantel-group-nullify
Copy link

mantel-group-nullify bot commented Aug 25, 2024

Severity Threshold: πŸ”΅ MEDIUM

1 Potential vulnerability sources found within this repo

πŸ”΄ CRITICAL 🟑 HIGH πŸ”΅ MEDIUM βšͺ LOW
0 0 1 0

ID: 01J64RPASZX8ZMDZGRCPMN8EAG Language: Python Severity: πŸ”΅ MEDIUM CWE-400

Uncontrolled Resource Consumption

The application is using the requests module without setting a timeout for connections. This could lead to uncontrolled resource consumption if the external services (like the plate recognition API) are slow to respond or unresponsive. In a worst-case scenario, this could cause the entire gate control system to become unresponsive, leading to a Denial of Service.
Read more:
https://cwe.mitre.org/data/definitions/400.html

response = requests.post(
'https://api.platerecognizer.com/v1/plate-reader/',
data=dict(regions=regions), # Optional
files=dict(upload=fp),
headers={'Authorization': f'Token {plate_recognizer_token}'})

Reply with /nullify to interact with me like another developer

@mantel-group-nullify mantel-group-nullify bot pinned this issue Aug 25, 2024
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

No branches or pull requests

0 participants