GHSA-p9fg-j6ww-953m FOSRestBundle issue with broken validation of JSONP callbacks
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- PHP
Description
Starting with FOSRestBundle 1.2 we switched to using willdurand/jsonp-callback-validator for validation of JSONP callbacks. However the change was implemented incorrectly validating the callback query param name, rather than its value. Anyone using the JSONP handler (which is off by default) together with FOSRestBundle 1.2.0 or 1.2.1 should update to FOSRestBundle 1.2.2.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| friendsofsymfony/rest-bundle(Packagist) | = 1.2.0; = 1.2.1; >= 1.2.0, < 1.2.2 | 1.2.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| friendsofsymfony/rest-bundle(Packagist) | >= 1.2.0, < 1.2.2 | 1.2.2 |
| friendsofsymfony/rest-bundle(Packagist) | = 1.2.0 | No fix listed |
| friendsofsymfony/rest-bundle(Packagist) | = 1.2.1 | No fix listed |
References
- github.com patch
- github.com
- github.com product
- symfony.com
- github.com