Security audit β 2026-06-16#64
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-16
Probed URL: https://limaimpro.duckdns.org/
Stack: React 18 + Vite 7 / npm / PWA=yes (vite-plugin-pwa, workbox autoUpdate)
Backend: FastAPI (Python) on Railway Β· nginx SPA proxy in Docker
Counts: Critical=0 High=2 Medium=1 Low=2 Info=1
Findings
//-prefixed path (GHSA-2j2x-hqr9-3h42)improv-cabaret-planner.lovable.app) injected into CORS allowlist when env var is unsetTop 3 fixes
'unsafe-inline'with CSS hashes/nonces or move to external stylesheets to prevent CSS injection.react-router-domto β₯6.30.4 (already near the boundary β single patch bump).vitestto β₯3.2.6; the Vitest UI server (vitest --ui) should never be exposed on a shared/CI host.Evidence (Critical/High only)
CSP unsafe-inline style-src Β· nginx.conf:12
Allows attacker-controlled inline
<style>injection (if another sink permits HTML injection) to exfiltrate data via CSS attribute selectors.script-src 'self'(no unsafe-inline) limits XSS risk but CSS injection remains.Fix: use hashes for known inline styles; eliminate
'unsafe-inline'.vitest 3.2.4 (devDep) Β· GHSA-5xrq-8626-4rwp β CVSS 9.8
When
vitest --uiis running, arbitrary files can be read and executed by any network-reachable client. Production build is unaffected (devDependency not bundled), but CI runners and developer machines are at risk if the UI is exposed.Fix:
npm install -D vitest@^3.2.6.Verified safe
max-age=31536000; includeSubDomains(nginx.conf:14)allow_credentials=Truepaired with enumerated origins only β not reflective/with NetworkFirst caching for API β no auth route pre-caching issueNeeds server-side verification
CORS_ORIGINSenv var on Railway (verifyimprov-cabaret-planner.lovable.appis excluded in prod)Tools
ran=npm-audit, grep-secrets, curl-headers(blocked-403), openssl-tls, nginx.conf-review, source-sast
skipped=pnpm-audit(not used in this repo), nmap(not authorized)
Generated by Claude Code