CVE-2018-20744Published Jan 28, 2019 · Jan 28Updated Oct 20
github.com/gofiber/fiber/v2 vulnerable to Origin Validation Error
Medium5.9Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/gofiber/fiber/v2 Go |
|
|
| github.com/rs/cors Go |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| github.com/gofiber/fiber/v2 Go |
|
|
| github.com/rs/cors Go |
|
|
The Olivier Poitrey Go CORS handler through 1.3.0 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.
From the CVE record · mitre
The Go CORS handler can turn a wildcard CORS policy into a response that reflects an arbitrary Origin header value. This can cause CORS security misconfigurations when a wildcard policy is used. The input does not specify authentication or user-interaction requirements.
Check deployments using github.com/gofiber/fiber/v2 versions 2.0.0 through 2.42.x or github.com/rs/cors versions before 1.5.0.