Canonical machine-readable security contact policy is published at /.well-known/security.txt (RFC 9116).
If you discover a security vulnerability, please do not open a public issue.
Report it privately through GitHub's vulnerability reporting:
https://github.com/BistaDinesh03/critique/security/advisories/new
If that page is not available to you, contact the maintainer privately through GitHub instead. Please include:
- The affected endpoint or page
- Steps to reproduce
- The potential impact
Valid reports are acknowledged and, with your permission, credited publicly.
The deployed site at https://critique.page and the latest commit on main
are supported. There are no versioned releases.
These controls exist in the codebase today — useful context when reporting or reviewing:
- CSRF protection (double-submit cookie) on state-changing mutation requests (
/api/projects/*,/auth/email/start). Lightweight analytics tracking (POST /api/analytics/track) is exempt to support browser beacons and unauthenticated event telemetry, and is guarded by IP rate limiting and a strict server-side event allowlist. - Session cookies are
HttpOnly,SameSite=Lax, andSecurein production - Server-side ownership checks on every mutation, based on the session — never on client-supplied headers
- Rate limiting on authentication, email login, project creation, deletion, feedback submission, and analytics
- Pydantic input validation (length limits, URL scheme checks, enums)
- HTML escaping of user content in the frontend
- Analytics events validated against a strict server-side allowlist
- IP addresses used for duplicate detection and email-login auditing are
stored as HMAC-SHA-256 digests using a dedicated key derived from
SECRET_KEYwith thecritique:ip-hash:key:v1context. The IP digest uses the separatecritique:ip-hash:value:v1context. Raw IPs are not persisted by these hashing paths. Hashes remain stable whileSECRET_KEYis unchanged; rotating the key changes new digests and does not backfill existing records. Configure a persistentSECRET_KEYto preserve hash stability across application restarts. - No third-party tracking scripts
- Never commit secrets, tokens, credentials, or
.envfiles - Use environment variables for all sensitive values
- Test changes for common vulnerabilities (XSS, CSRF, injection, IDOR)
- Do not weaken existing security checks to make a feature easier to build