Skip to content

Security: monsieurpapa/BeansPath

Security

SECURITY.md

Security Policy

Supported Versions

We actively support the following versions with security updates:

Version Supported End of Support
1.x.x ✅ Yes TBD
0.9.x ⚠️ Limited (critical only) 2025-12-31
< 0.9 ❌ No Ended

Reporting a Vulnerability

We take security seriously. If you discover a security vulnerability, please follow these steps:

🔒 Private Disclosure (Preferred)

  1. Email: security@beanspath.com
  2. Subject: "SECURITY: [Brief Description]"
  3. Include:
    • Detailed description of the vulnerability
    • Steps to reproduce
    • Potential impact
    • Suggested fix (if any)
    • Your contact information

DO NOT disclose the vulnerability publicly until we've had a chance to address it.

Response Timeline

  • Acknowledgment: Within 24 hours
  • Initial Assessment: Within 72 hours
  • Status Update: Weekly until resolved
  • Fix Deployment: Varies by severity (see below)

Severity Levels

Severity Response Time Examples
Critical 24-48 hours Remote code execution, database exposure
High 1 week Privilege escalation, authentication bypass
Medium 2 weeks XSS, CSRF, information disclosure
Low 1 month Minor information leaks, configuration issues

Security Measures

Application Security

Authentication & Authorization

  • ✅ Google OAuth 2.0 for authentication
  • ✅ Session-based token management
  • ✅ Role-based access control (RBAC)
  • ✅ Multi-factor authentication support (planned)
  • ✅ Session timeout (configurable)

Data Protection

  • ✅ TLS/SSL encryption for data in transit
  • ✅ Encrypted database connections
  • ✅ Secure password storage (OAuth only, no passwords stored)
  • ✅ Input validation and sanitization
  • ✅ Output encoding to prevent XSS

Infrastructure Security

  • ✅ Docker container security (non-root user)
  • ✅ Regular dependency updates
  • ✅ Automated vulnerability scanning (Trivy)
  • ✅ Security headers (HSTS, CSP, X-Frame-Options)
  • ✅ Rate limiting
  • ✅ DDoS protection (via CDN)

Security Best Practices

For Administrators

  1. Environment Variables

    • Never commit .env.local
    • Use strong, random passwords
    • Rotate credentials regularly
    • Use separate credentials per environment
  2. Database Security

    • Restrict database access to application only
    • Use connection pooling with limits
    • Enable query logging for auditing
    • Regular backups (tested restores)
  3. Server Security

    • Keep system packages updated
    • Configure firewall (only ports 80, 443, 22)
    • Disable root SSH login
    • Use SSH keys (not passwords)
    • Enable fail2ban for brute force protection
  4. Monitoring

    • Enable error tracking (Sentry)
    • Monitor logs for suspicious activity
    • Set up alerts for critical events
    • Review audit logs regularly

For Developers

  1. Code Security

    • Follow OWASP Top 10 guidelines
    • No hardcoded secrets
    • Use prepared statements (SQL injection protection)
    • Validate all user input
    • Sanitize output
  2. Dependencies

    • Run npm audit regularly
    • Update dependencies monthly
    • Review dependency changelogs
    • Use lockfiles (package-lock.json)
  3. Pre-commit Checks

    • TypeScript type checking
    • ESLint security rules
    • No console.log statements - Secrets scanning (planned)

Known Security Considerations

Current Limitations

  1. API Keys in Frontend

    • Google Maps API key exposed in frontend
    • Mitigation: API key restrictions configured in Google Cloud Console
    • Planned: Move to backend proxy (Phase 6)
  2. Gemini API Key

    • Currently in frontend environment
    • Planned: Move to backend service (Phase 6)
  3. No Backend API Yet

    • Direct database access from frontend (mock data)
    • Planned: Full backend API implementation (Phase 7)
  4. Session Storage

    • User data in sessionStorage (browser only)
    • Mitigation: Automatic session timeout
    • Risk: Low (OAuth tokens not stored)

Planned Improvements

  • Backend API with authentication middleware
  • API rate limiting per user
  • Two-factor authentication (2FA)
  • Security audit logging
  • Penetration testing
  • Bug bounty program

Compliance

Standards We Follow

  • OWASP Top 10: Web application security risks
  • CWE Top 25: Most dangerous software weaknesses
  • GDPR: General Data Protection Regulation
  • CCPA: California Consumer Privacy Act
  • **SOC 2`: Service Organization Control (planned)

Privacy & Data Protection

See our Privacy Policy for details on:

  • Data collection and usage
  • User rights (GDPR/CCPA)
  • Data retention and deletion
  • Cookie policy

Security Audit History

Date Type Scope Status
2025-11 Internal Full codebase ✅ Passed
TBD External Penetration test Planned
TBD Compliance GDPR audit Planned

Incident Response Plan

In case of a security breach:

  1. Immediate Actions (0-2 hours)

    • Isolate affected systems
    • Assess scope and impact
    • Notify security team
    • Begin incident logging
  2. Short-term Response (2-24 hours)

    • Contain the breach
    • Preserve evidence
    • Notify affected users (if required)
    • Deploy emergency fixes
  3. Long-term Recovery (1-7 days)

    • Root cause analysis
    • Implement permanent fixes
    • Update security measures
    • Post-mortem report
  4. Follow-up (1-4 weeks)

    • User communication
    • Regulatory reporting (if required)
    • Process improvements
    • Security training

Security Contacts

Role Email Response Time
Security Team security@beanspath.com 24 hours
CTO cto@beanspath.com 48 hours
DPO dpo@beanspath.com 48 hours

Emergency Hotline: +XXX-XXX-XXXX (24/7 for critical issues)


Responsible Disclosure

We believe in responsible disclosure and will:

  1. ✅ Acknowledge your report within 24 hours
  2. ✅ Provide regular updates on the fix progress
  3. ✅ Credit you in our security advisories (unless you prefer anonymity)
  4. ✅ Consider bug bounty rewards for significant findings (program TBD)

Hall of Fame

We will recognize security researchers who help us improve BeansPath:

Researcher Date Severity Description
Coming Soon - - First entry!

Security Resources


Updates to This Policy

This security policy is reviewed quarterly and updated as needed. Last review: November 2025.

For questions about this policy: security@beanspath.com

There aren't any published security advisories