[Security] MEDIUM: 20 code-level issue(s) #62
Labels
No labels
agentic-osint
audit
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:preflight
blocked:verify-failed
bug
chore
deferred
enhancement
feature-request
in-progress
lint-baseline
lint-cleanup
needs-decompose
needs-triage
performance
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/osint-hub#62
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?
Code Security Issues
exec_usage: Arbitrary command execution via exec() in backend/app/monitoring.py:116exec_usage: Arbitrary command execution via exec() in backend/app/monitoring.py:168exec_usage: Arbitrary command execution via exec() in backend/app/init_db.py:13exec_usage: Arbitrary command execution via exec() in backend/app/deps.py:27exec_usage: Arbitrary command execution via exec() in backend/app/tasks.py:289exec_usage: Arbitrary command execution via exec() in backend/app/import_seed.py:28exec_usage: Arbitrary command execution via exec() in backend/app/import_seed.py:35exec_usage: Arbitrary command execution via exec() in backend/app/routers/monitoring.py:73exec_usage: Arbitrary command execution via exec() in backend/app/routers/monitoring.py:146exec_usage: Arbitrary command execution via exec() in backend/app/routers/findings.py:40exec_usage: Arbitrary command execution via exec() in backend/app/routers/leads.py:40exec_usage: Arbitrary command execution via exec() in backend/app/routers/contacts.py:76exec_usage: Arbitrary command execution via exec() in backend/app/routers/orgs.py:44exec_usage: Arbitrary command execution via exec() in backend/app/routers/gather.py:279exec_usage: Arbitrary command execution via exec() in backend/app/routers/entities.py:59exec_usage: Arbitrary command execution via exec() in backend/app/routers/entities.py:62exec_usage: Arbitrary command execution via exec() in backend/app/routers/entities.py:65exec_usage: Arbitrary command execution via exec() in backend/app/routers/entities.py:99exec_usage: Arbitrary command execution via exec() in backend/app/routers/entities.py:100exec_usage: Arbitrary command execution via exec() in backend/app/routers/entities.py:153Auto-filed by security-sweep.py on 2026-05-17 03:14 UTC
Analysis: All 20 Issues Are False Positives
After reviewing all 20 flagged locations, none are actual security vulnerabilities.
Why These Are False Positives
All flagged uses are
session.exec()from SQLModel/SQLAlchemy, which is a database query execution method, NOT Python's dangerous built-inexec()function.SQLModel's
session.exec():Python's built-in
exec():Reviewed Files
session.exec(select(...))session.exec(select(User)...)session.exec(select(User)...)session.exec(Source.__table__.select())session.exec(query)session.exec(stmt)session.exec(stmt)session.exec(stmt)session.exec(stmt)session.exec(select(Organization)...)session.exec(select(...))Recommendation
The
security-sweep.pyscanner needs to be updated to differentiate between:exec()function (dangerous)session.exec()method (safe ORM query)No code changes required. Closing as false positive.
Quickfix applied via opencode.