parkpow / deep-license-plate-recognition

Automatic License Plate Recognition (ALPR) or Automatic Number Plate Recognition (ANPR) software that works with any camera.
https://platerecognizer.com/
MIT License
523 stars 122 forks source link

initial commit of docker desktop extension #218

Open danleyb2 opened 12 hours ago

github-actions[bot] commented 12 hours ago

Risk Level 3 - /home/runner/work/deep-license-plate-recognition/deep-license-plate-recognition/docker/dd-extension/ui/src/components/Stream.tsx

Similar to the Snapshot component, the handleSubmit function in the Stream component constructs a Docker command without sanitizing user input, which could lead to command injection vulnerabilities.


Risk Level 3 - /home/runner/work/deep-license-plate-recognition/deep-license-plate-recognition/docker/dd-extension/ui/src/components/Snapshot.tsx

The handleSubmit function contains a hardcoded URL, which could be extracted as a constant or environment variable. Also, the Docker command construction does not escape user input, which could lead to command injection if not properly sanitized.


Risk Level 4 - /home/runner/work/deep-license-plate-recognition/deep-license-plate-recognition/docker/dd-extension/backend/utils.py

The verify_token function falls back to HTTP if an SSL error occurs, which could lead to security issues. It's recommended to handle SSL errors differently and avoid downgrading to an insecure protocol. Additionally, the exception handling for URLError should be more specific to the error codes and provide a clear message for each case.


🔒🐛🚨


Powered by Code Review GPT