Security audit β 2026-06-28#77
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-28
Probed URL: https://limaimpro.duckdns.org/
Stack: Vite 7 + React 18 / npm / PWA=yes (vite-plugin-pwa, autoUpdate)
Backend: FastAPI (Python) + PostgreSQL on Railway; Nginx reverse proxy (frontend)
Counts: Critical=0 High=0 Medium=4 Low=2 Info=1
Findings
src/contexts/AuthContext.tsx:74-77backend/app/config.py:10unsafe-inlinefor style-srcnginx.conf:14package.jsonbackend/app/main.py:54backend/app/utils/security.py:111,120vite.config.tsTop 3 fixes
DEFAULT_JWT_SECRETconstant; raiseValueErrorat startup ifJWT_SECRETis unset so misconfigured deployments fail fast.unsafe-inlinewith a style nonce or hash in Nginx CSP; Tailwind JIT classes can be pre-computed at build time.Evidence (Critical/High only)
No Critical or High findings β Evidence section not required.
Verified safe
allow_credentials=Truemax-age=31536000; includeSubDomainsin nginx.confNeeds server-side verification
JWT_SECRETis set to a unique secret in Railway production (not the hardcoded default)CORS_ORIGINSin Railway matches onlyhttps://limaimpro.duckdns.orgreact-routermoderate advisory is remediated in deployed buildTools
ran=npm-audit, grep-secret-scan, git-sast-manual; skipped=curl-dast (outbound proxy 403), openssl-tls (proxy blocked), pnpm-audit (not installed)
Generated by Claude Code