Affected versions
- Affected versions
- <3.7 || >=3.7 <=3.7.17 || >=3.8 <=3.8.17 || >=3.9 <=3.9.15 || >=4.0 <=4.0.14 || >=4.1 <=4.1.14 || >=4.2 <=4.2.11 || >=4.3 <=4.3.7 || >=4.4 <=4.4.6 || >=4.5 <=4.5.5 || >=4.6 <=4.6.2 || >=4.7 <=4.7.1
- Fixed version
- 3.7.18 · 3.8.18 · 3.9.16 · 4.0.15 · 4.1.15 · 4.2.12 · 4.3.8 · 4.4.7 · 4.5.6 · 4.6.3 · 4.7.2
Exploitation
Description
The register_routes function in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php in the REST API in WordPress 4.7.x before 4.7.2 does not require an integer identifier, which allows remote attackers to modify arbitrary pages via a request for wp-json/wp/v2/posts followed by a numeric value and a non-numeric value, as demonstrated by the wp-json/wp/v2/posts/123?id=123helloworld URI.
Links
Credits
- Marc-Alexandre Montpas

