Security audit β 2026-06-15#63
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-15
Probed URL: https://limaimpro.duckdns.org/
Stack: React 18 / Vite 7 / FastAPI + SQLAlchemy (Python) / PWA=no
Counts: Critical=0 High=4 Medium=3 Low=1 Info=1
Findings
backend/app/config.py:37,84-87backend/app/main.py:54package.json devDepspackage.json devDepsbackend/app/main.py:202,224package.jsonpackage.jsonnginx.conf:10Top 3 fixes
FRONTEND_URLexplicitly in Railway production env vars (e.g.https://limaimpro.duckdns.org) soimprov-cabaret-planner.lovable.appdefault is never injected."Admin1234!"with a startup check that readsSEED_ADMIN_PASSWORDenv var; never commit passwords to source.Depends(require_admin)to/health/dband/health/migrations, or strip DB URL + traceback from HTTP responses.Evidence (High findings)
CORS default FRONTEND_URL auto-injection β
backend/app/config.py:37,84-87Impact: If FRONTEND_URL is not set in Railway production, a potentially-uncontrolled Lovable.app subdomain gets credentialed CORS access. An attacker who acquires that subdomain can exfiltrate user sessions.
Fix: Explicitly set
FRONTEND_URL=https://limaimpro.duckdns.orgin all production environments.Hardcoded admin seed password β
backend/app/main.py:54{"email": "admin@lima-impro.fr", "app_role": "admin", "password": "Admin1234!", β¦}Impact: On a fresh DB deploy, admin account is created with a well-known password visible in git history.
Fix: Seed from
SEED_ADMIN_PASSWORDenv var or generate a random password printed once to startup logs.vitest <3.2.6 β GHSA-5xrq-8626-4rwp
Impact: If Vitest UI server (
--ui) runs on a CI host reachable from the network, arbitrary files can be read and executed.Fix:
npm install vitest@latestserialize-javascript β€7.0.2 β GHSA-5c6j-r48x-rmvq
Impact: Build-time RCE if serialized user-controlled input reaches this package.
Fix: Upgrade transitive deps or pin
serialize-javascriptβ₯8.0.0.Verified safe
require_admindependencyNeeds server-side verification
admin@lima-impro.frpassword was changed post first-deployTools
ran=npm-audit, grep-secret-scan, openssl-tls-check; skipped=DAST-curl (Anthropic egress gateway blocks target hosts β HTTP 403 host_not_allowed)
Generated by Claude Code