SSRF Loopback IP filter bypass in directus
directus
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| directus npm |
|
|
| @directus/api npm |
|
directus
| Product | Affected | Fixed in |
|---|---|---|
| directus npm |
|
|
| @directus/api npm |
|
21.0.022.1.1Directus is a real-time API and App dashboard for managing SQL database content. When relying on blocking access to localhost using the default `0.0.0.0` filter a user may bypass this block by using other registered loopback devices (like `127.0.0.2` - `127.127.127.127`). This issue has been addressed in release versions 10.13.3 and 11.1.0. Users are advised to upgrade. Users unable to upgrade may block this bypass by manually adding the `127.0.0.0/8` CIDR range which will block access to any `127.X.X.X` ip instead of just `127.0.0.1`.
From the CVE record · GitHub_M
Directus users may bypass a localhost access block that relies on the default `0.0.0.0` filter by using another loopback address, such as `127.0.0.2`. This applies when that filter is used to block localhost; the input does not specify whether authentication or user interaction is required.
Operators running npm `directus` versions below 10.13.3 or 11.0.0 to below 11.1.0, or `@directus/api` versions below 21.0.0 or 22.0.0 to below 22.1.1, should check their installations.