Security audit β 2026-06-25#74
Open
versila22 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pentest mini-report β versila22/lima-app β 2026-06-25
Probed URL: https://limaimpro.duckdns.org/
Stack: Vite + React SPA / npm / PWA=yes / Python FastAPI backend (Railway)
Counts: Critical=0 High=1 Medium=2 Low=2 Info=3
Findings
backend/app/main.py:53,135package.jsonβ react-router <6.30.4package.jsonunsafe-inlinein CSP style-srcnginx.conf:16backend/app/config.py:8vite.config.ts:runtimeCachinglima:passwordin source (default only, must be overridden)backend/app/config.py:23Top 3 fixes
_ensure_seed_data()behindif settings.APP_ENV == 'development': returnto prevent it from running against the production DB.npm update react-router react-router-dom).npm audit fix; review undici and fast-uri for runtime exposure; pin vitest β₯3.2.6 (GHSA-5xrq).Evidence (Critical/High only)
High β Seed admin credentials in production (SAST)
backend/app/main.py:53,135{"email": "admin@lima-impro.fr", ..., "password": "Admin1234!", "app_role": "admin"}β called unconditionally bylifespan()on every container start.if settings.APP_ENV != "development": returnat the top of_ensure_seed_data().Verified safe
allow_credentials=True, no reflection β safe.dangerouslySetInnerHTML,innerHTML,eval) found in frontend source.SecurityHeadersMiddleware(HSTS, nosniff, X-Frame-Options, strict CSP for API).ValueErrorif default secret used outside development./, no VAPID_PRIVATE client-side, tokens not in localStorage.Needs server-side verification
APP_ENV=productionis correctly set on Railway deployment.Tools
ran=npm-audit, grep-secret-scan; skipped=curl-headers(proxy policy denied), curl-CORS(proxy policy denied), curl-sensitive-files(proxy policy denied), openssl-tls(proxy policy denied)
Generated by Claude Code