Skip to content

Hackelo site security#51

Open
shrey150 wants to merge 4 commits intomainfrom
cursor/hackelo-site-security-3b25
Open

Hackelo site security#51
shrey150 wants to merge 4 commits intomainfrom
cursor/hackelo-site-security-3b25

Conversation

@shrey150
Copy link
Copy Markdown
Contributor

Implement critical security fixes for XSS, rate limiting, security headers, and input validation, and provide RLS policies to address identified vulnerabilities.


Slack Thread

Open in Web Open in Cursor 

cursoragent and others added 2 commits February 26, 2026 08:15
- Fix XSS vulnerability in email notifications with HTML escaping
- Add rate limiting to API routes (5 req/min for emails, 10 req/min for checkout)
- Create Supabase RLS policies for all tables (love_notes, v1-people, flags, dynamic_links)
- Add input validation with Zod schemas
- Implement security headers (X-Frame-Options, CSP, HSTS, etc.)
- Add middleware for global security headers
- Add input length validation to people search
- Create comprehensive security audit documentation

Critical vulnerabilities fixed:
- XSS in email notifications
- No rate limiting
- Missing RLS policies
- Lack of input validation
- Missing security headers

See SECURITY_AUDIT.md for full vulnerability report
See SECURITY_FIXES_IMPLEMENTED.md for implementation details
See SECURITY_RECOMMENDATIONS.md for next steps

Co-authored-by: Shrey Pandya <shrey150@yahoo.com>
Co-authored-by: Shrey Pandya <shrey150@yahoo.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Feb 26, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 26, 2026

Deploy Preview for v1-landing-page ready!

Name Link
🔨 Latest commit c61b05a
🔍 Latest deploy log https://app.netlify.com/projects/v1-landing-page/deploys/69a9c23a0e25440008932cd8
😎 Deploy Preview https://deploy-preview-51--v1-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@kllarena07 kllarena07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I added RLS for all of the tables that Cursor suggested aside from the dynamic_links table since that could screw up the Retool. I'll look into it later

@kllarena07 kllarena07 requested a review from dllliu March 5, 2026 17:52
Copy link
Copy Markdown
Contributor

@dllliu dllliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dllliu dllliu marked this pull request as ready for review March 5, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants