Skip to content

Security: codeforgood-org/dotnet-websocket-chat

Security

SECURITY.md

Security Policy

Supported Versions

We release patches for security vulnerabilities for the following versions:

Version Supported
1.0.x
< 1.0

Reporting a Vulnerability

If you discover a security vulnerability, please do NOT open a public issue.

Instead, please send an email to security@chatapp.com with:

  1. Description of the vulnerability
  2. Steps to reproduce
  3. Potential impact
  4. Suggested fix (if any)

You should receive a response within 48 hours. If the issue is confirmed, we will:

  1. Release a patch as soon as possible
  2. Credit you in the security advisory (unless you prefer to remain anonymous)
  3. Publish a security advisory

Security Features

ChatApp implements several security measures:

  • JWT Authentication - Token-based authentication with expiration
  • Password Hashing - BCrypt password hashing
  • HTTPS - Encrypted communication
  • CORS - Cross-Origin Resource Sharing protection
  • Input Validation - Server-side validation of all inputs
  • SQL Injection Protection - Parameterized queries
  • File Upload Validation - Type and size restrictions
  • Rate Limiting - API endpoint rate limiting
  • XSS Protection - Content sanitization

Best Practices for Deployment

  1. Use HTTPS in production
  2. Rotate JWT secrets regularly
  3. Use strong passwords for database and admin accounts
  4. Keep dependencies updated to patch known vulnerabilities
  5. Configure CORS properly for your domain
  6. Review logs regularly for suspicious activity
  7. Implement backup strategy for data protection
  8. Use environment variables for sensitive configuration

Security Checklist for Production

  • HTTPS configured and enforced
  • JWT secret key changed from default
  • Database using strong credentials
  • CORS configured for production domains only
  • File upload restrictions properly configured
  • Rate limiting enabled
  • Logging and monitoring in place
  • Regular security updates applied
  • Backup and disaster recovery plan
  • Security headers configured

Contact

For security concerns, contact: security@chatapp.com

There aren’t any published security advisories