@jitsi/docker-jitsi-meet: `/colibri-relay-ws/` unsafe nginx regex (OCTO relay configuration)
An nginx location used an unsafe regular expression to build a proxy_pass target when OCTO relay support was enabled, so the destination could be an arbitrary domain or IP address. An unauthenticated attacker could therefore have requests proxied to a destination of their choosing.
- Triaged in 1 hour
- Fixed in 4 days
- Disclosed after 30 days
Summary by the program
@a3z4km3 reported an unsafe nginx regex pattern in docker-jitsi-meet's /colibri-relay-ws/ location. When ENABLE_OCTO was enabled, the regex [a-zA-Z0-9-\._]+ accepted arbitrary domain names and IP addresses for proxy_pass directives, allowing unauthenticated requests to be proxied to attacker-specified destinations.
The vulnerable nginx location and associated relay WebSocket proxy configuration have been removed.
Changes:
- feat(web,jvb): remove deprecated colibri websocket support
We thank @a3z4km3 for submitting this report to us.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the nginx location matched a user-controlled host value with a permissive regex and passed it straight into proxy_pass, without restricting it to known relay hosts.
Impact
Unauthenticated requests could be proxied to attacker-chosen destinations, though only when OCTO relay support was enabled.
What the attacker needed
ENABLE_OCTO must be enabled; no authentication needed
The fix
The vulnerable nginx location and its relay WebSocket proxy configuration were removed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A web server can forward some requests to another server. Here the destination was taken from the incoming request and only loosely checked, so someone could point it at a machine they control.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.