redteaming-arena / redteam-arena

29 stars 5 forks source link

Connection Failure/Core Error: Firefox Unable to Establish Connection #17

Open LVivona opened 1 month ago

LVivona commented 1 month ago

Description

Firefox is unable to establish a WebSocket connection to our server at wss://redarena.ai:3000/ws, and API calls to the backend are also failing. This issue might be related to Cloudflare configuration or server setup.

Current Behavior

Expected Behavior

Steps to Reproduce

WebSocket Reproduction

Only within the production code.

  1. Open Firefox browser.
  2. Attempt to connect to wss://redarena.ai:3000/ws.
  3. Observe the connection failure.

Core Error Reproduction

Only within the production code.

  1. Open Firefox browser.
  2. Log in to redarena.ai.
  3. Navigate to the history section and refresh repeatedly until the core error occurs.

Possible Causes (WebSockets)

  1. WebSocket server misconfiguration.
  2. Cloudflare settings blocking WebSocket connections.
  3. SSL/TLS configuration issues.
  4. Server firewall blocking port 3000 or WebSocket traffic.
  5. DNS misconfiguration in Cloudflare.

Possible Causes (Core API Errors)

  1. Cloudflare configuration misalignment with FastAPI backend.
  2. SSL certificate misconfiguration or missing.
  3. Rate-limiting or security rules applied in Cloudflare affecting specific API routes.

Investigation Steps

1. WebSocket Server Configuration

2. Cloudflare Configuration

3. SSL Certificate and TLS Configuration

4. Firewall Configuration

5. Cross-Origin Resource Sharing (CORS)

6. Rate Limiting

Priority

High - This issue is preventing core functionality and must be resolved as soon as possible.

infwinston commented 1 month ago

Navigate to the history section and refresh repeatedly until the core error occurs.

Just to confirm: does this happen only when you repeatedly refresh the site? cause we set up a rate limit on cloudflare it could be triggered when we refresh the site too frequently