← Back to scan
File as GitHub Issue repo: smartqa-api/smartqa-api

Push this scan report to smartqa-api/smartqa-api

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Auth/permission check missing on AI-generated endpoint

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT DKC007 Compose service contains a literal secret environment value docker-compose.yml:16
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… convert_docs.py:221
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… app/services/kb_search.py:23
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… app/api/knowledge.py:23
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… app/api/chat.py:27
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… app/api/auth.py:20
HIGH COMP001 [COMP001] High cognitive complexity: Function `_split_long_text` has cognitive complexity… app/services/kb_search.py:146
HIGH DKR014 Dockerfile copies the entire context without .dockerignore Dockerfile:12
HIGH MINED118 Dockerfile FROM `python:3.11-slim` not pinned by digest Dockerfile:1
HIGH DKC011 Database service publishes a host port docker-compose.yml:28
HIGH MINED112 FastAPI POST /send-sync has no auth app/api/chat.py:80
HIGH MINED112 FastAPI POST /send has no auth app/api/chat.py:28
HIGH CORE_NO_TESTS No test files found
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… convert_docs.py:221
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… app/services/kb_search.py:23
MED SEC015 [SEC015] Insecure Randomness for Security: Weak PRNG used in security-sensitive context. … app/core/security.py:19
MED MINED111 Bare except continues silently app/api/chat.py:61
MED MINED111 Bare except continues silently app/api/chat.py:111
MED MINED111 Bare except continues silently app/api/chat.py:88
MED MINED111 Bare except continues silently app/api/chat.py:35
MED MINED111 Bare except continues silently app/api/knowledge.py:186
MED MINED111 Bare except continues silently app/services/rag_service.py:33
MED MINED111 Bare except continues silently app/services/kb_search.py:82
MED MINED111 Bare except continues silently convert_docs.py:152
MED MINED111 Bare except continues silently convert_docs.py:111
MED MINED111 Bare except continues silently convert_docs.py:57
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR001 Docker final stage has no non-root USER Dockerfile:1
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED AUC012 [AUC012] FastAPI interactive docs may be exposed by framework defaults: FastAPI exposes /…
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … app/api/knowledge.py:211
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … app/api/knowledge.py:121
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … app/api/knowledge.py:97
MED CORE_NO_CI No CI/CD configuration found
MED CORE_NO_README No README file found
LOW COMP001 [COMP001] High cognitive complexity: Function `upload_document` has cognitive complexity … app/api/knowledge.py:122
LOW COMP001 [COMP001] High cognitive complexity: Function `wechat_login` has cognitive complexity 10 … app/api/auth.py:21
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
LOW DKC015 Database service has no healthcheck docker-compose.yml:28
LOW DKC015 Database service has no healthcheck docker-compose.yml:16
LOW DKC016 App service does not wait for database health docker-compose.yml:3
LOW DKC010 Compose service lacks no-new-privileges hardening docker-compose.yml:3
LOW DKC006 Compose service does not declare a runtime user docker-compose.yml:16
LOW DKC006 Compose service does not declare a runtime user docker-compose.yml:3
LOW CORE_NO_LICENSE No LICENSE file
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. app/models/database.py:42
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… convert_docs.py:222
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… app/services/kb_search.py:24
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… app/models/database.py:43
Reset to top 5 50 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `smartqa-api/smartqa-api`

**Score: 67/100 (D+)**  ·  50 findings  ·  scanned 2026-05-28 05:37 UTC  ·  1,871 LOC

| Severity | Count |
|---|---|
| CRITICAL | 1 |
| HIGH | 12 |
| MEDIUM | 23 |
| LOW | 10 |

📊 [Full filterable report](https://repobility.com/scan/c0c32f91-de68-4edd-b837-1420c0881687/)  ·  ![scorecard](https://repobility.com/scan/c0c32f91-de68-4edd-b837-1420c0881687/report.png?v=1779946652-s2)

### Top findings

1. **CRITICAL** `DKC007` — Compose service contains a literal secret environment value
   `docker-compose.yml:16`
2. **HIGH** `MINED001` — Bare Except Pass
   `convert_docs.py:221` · CWE-755 · ✓ Repobility
3. **HIGH** `MINED001` — Bare Except Pass
   `app/services/kb_search.py:23` · CWE-755 · ✓ Repobility
4. **HIGH** `SEC135` — Auth/permission check missing on AI-generated endpoint
   `app/api/knowledge.py:23` · CWE-862
5. **HIGH** `SEC135` — Auth/permission check missing on AI-generated endpoint
   `app/api/chat.py:27` · CWE-862

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/c0c32f91-de68-4edd-b837-1420c0881687/_
Premium account
This scan was submitted by a Enterprise-tier account. Premium accounts have full outreach control â Repobility doesn't pre-fill the 'file as GitHub issue' button for paid users. You can still file the issue manually using the markdown body above (Copy markdown), or contact us if you'd like batch-filing enabled for your account.
Megaproject â high spam risk
Could not determine 'smartqa-api/smartqa-api' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.