Security audit β 2026-06-12#52
Open
versila22 wants to merge 2 commits into
Open
Conversation
C=1 H=3 M=5 L=2 I=2 Critical: vitest GHSA-5xrq-8626-4rwp (CVSS 9.8) High: fast-uri path-traversal/host-confusion, serialize-javascript RCE/DoS, @babel/plugin-transform-modules-systemjs arbitrary code gen Medium: react-router open redirect, postcss XSS, brace-expansion DoS, nginx /assets/ strips security headers, sessionStorage token storage
β¦ /health/db, JWT_SECRET, CORS)
Owner
Author
|
Audit update β 2026-06-12 (second pass, backend SAST) A deeper backend review found 3 additional findings not in the initial report. Report updated on this branch.
Most urgent: The seed data function creates Updated counts: Critical=1 High=5 Medium=5 Low=3 Info=2 Generated by Claude Code |
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-12
Probed URL: https://limaimpro.duckdns.org/
Stack: React 18 + Vite 7 / npm (bun.lock also present) / PWA=yes (vite-plugin-pwa, workbox autoUpdate, SW scope /)
Counts: Critical=1 High=3 Medium=5 Low=2 Info=2
Findings
preloaddirectivestyle-src 'unsafe-inline'allows CSS injectiondangerouslySetInnerHTMLin ChartStyle β developer-controlled CSS onlyTop 3 fixes
vitestto>=3.2.6; never exposevitest --uito the network.react-router-domto>=6.30.4vianpm audit fix.add_headerdirectives inside the/assets/location block so CSP/HSTS/X-Frame-Options are preserved for static assets.Evidence (Critical/High only)
Critical β vitest GHSA-5xrq-8626-4rwp
package.jsondevDependencies:"vitest": "^3.2.4"(resolves to <3.2.6)"vitest": "^3.2.4"β affects all versions <3.2.6vitest --uiserver is listening (dev/CI), any network-reachable client can read arbitrary files from the host filesystem and potentially execute code. CVSS 9.8.vitest@>=3.2.6and ensurevitest --uiis never exposed beyond localhost.High β fast-uri β€3.1.1 (two advisories)
package-lock.jsontransitive dep (workbox-build chain)overrides["fast-uri"]to>=3.1.2and runnpm audit fix.High β serialize-javascript (build-time RCE + DoS)
node_modules/@rollup/plugin-terserβnode_modules/workbox-buildoverrides["serialize-javascript"]resolves to>=6.0.2afternpm audit fix.High β @babel/plugin-transform-modules-systemjs (GHSA-fv7c-fp4j-7gwp)
package-lock.jsontransitive devDep (range 7.12.0β7.29.0)"@babel/plugin-transform-modules-systemjs": ">=7.29.3"tooverrides, or runnpm audit fix.Verified safe
.env.productioncontains onlyVITE_API_URL(public Vite var)dangerouslySetInnerHTMLinchart.tsx:70injects only developer-defined CSS color variables, not user inputeval(),document.write,innerHTMLassignments, orv-htmldirectives in application sourcepostMessagelisteners without origin checks (nopostMessageusage found)Object.assignon user input)max-age=31536000; includeSubDomainsX-Content-Type-Options: nosniff,X-Frame-Options: DENY,Referrer-Policy,Permissions-Policyall set.env,.git/config,.git/HEAD,backup.zip,dump.sql) all return 403sessionStorage(notlocalStorage); tab-scoped and cleared on tab closeNetworkFirststrategy β always attempts live network firstNeeds server-side verification
https://api-production-e15b.up.railway.appbackend/auth/loginand/auth/forgot-passwordhttpOnlyandSameSiteattributes on session cookies set by backendJWT_SECRET=change_me_in_productionplaceholder inbackend/.env.example)vitest --uiis ever invoked in CI/CD or server environmentsTools
ran=npm-audit, grep-secrets, curl-headers, curl-cors, curl-sensitive-paths, openssl-cert-dates, openssl-tls-protos, manual-SAST
skipped=none-missing; NOTE: all curl/DAST against limaimpro.duckdns.org returned HTTP 403 (host_not_allowed) from sandbox egress gateway β HTTP header findings based on nginx.conf analysis; TLS handshake completed before 403.
Generated by Claude Code