GHSA-99pm-ch96-ccp2
Flask-AppBuilder open redirect vulnerability using HTTP host injection
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| PyPI | flask-appbuilder | < 4.6.2 | 4.6.2 |
Details
As written in the advisory (Markdown source, shown as plain text).
### Impact
Flask-AppBuilder prior to 4.6.2 would allow for a malicious unauthenticated actor to perform an open redirect by manipulating the Host header in HTTP requests.
### Patches
Flask-AppBuilder 4.6.2 introduced the `FAB_SAFE_REDIRECT_HOSTS` configuration variable, which allows administrators to explicitly define which domains are considered safe for redirection.
Examples:
```
FAB_SAFE_REDIRECT_HOSTS = ["yourdomain.com", "sub.yourdomain.com", "*.yourcompany.com"]
```
### Workarounds
Use a Reverse Proxy to Enforce Trusted Host Headers
### References
_Are there any links users can visit to find out more?_
References
External links from the advisory. They lead to third-party sites.