[Security] HIGH: 1 issue(s) found in webcam-daemon-ha #4
Labels
No labels
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/webcam-daemon-ha#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security Scan Results for
webcam-daemon-haSeverity: HIGH
Findings: 1
1. secret_in_diff
5d703e115d703e11Password in URLThis issue was auto-generated by the security sweep cron job.
STATUS: FALSE POSITIVE — ROOT CAUSE FIXED
Analysis of commit
5d703e1:No password in URL exists anywhere in this commit, the repo's git history, or the current working tree.
Root cause: The security scanner (
security-sweep.py) applies regex patterns to the full multi-line git diff output viare.findall(). The "Password in URL" regexhttps?://[^:]+:[^@]+@[a-zA-Z0-9.-]+has a greedy[^@]+component that spans line boundaries. It matched starting from a legitimate f-string HTTP URL (http://{os.uname().nodename}:{PORT}/stream) and consumed 369 characters across many diff lines until finding the@in the@app.routedecorator that was added in this commit. Per-line scanning produces zero matches.Fix applied: Patched
~/.hermes/scripts/security-sweep.py— thecheck_secrets_in_history()function now splits diff content into individual lines before applying regex matching, preventing cross-line false positives.Verification: After the fix, commit
5d703e1reports zero "Password in URL" findings. Real secrets likehttp://user:pass@hoststill match correctly; legitimate URLs without credentials do not.Closing as resolved (scanner bug fixed, no actual security issue).
Fixed in commit. Closing.