vendor:
Wordpress
by:
Milad Khoshdel
7.5
CVSS
HIGH
Cross-Origin Resource Sharing
352
CWE
Product Name: Wordpress
Affected Version From: Wordpress 5.2.4
Affected Version To: Wordpress 5.2.4
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:wordpress:5.2.4
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Linux Apache/2 PHP/7.2
2019
WordPress 5.2.4 – Cross-Origin Resource Sharing
The web application fails to properly validate the Origin header and returns the header Access-Control-Allow-Credentials: true. In this configuration any website can issue requests made with user credentials and read the responses to these requests. Trusting arbitrary origins effectively disables the same-origin policy, allowing two-way interaction by third-party web sites.
Mitigation:
Ensure that the Access-Control-Allow-Origin header is not set to a wildcard and that it is set to a trusted origin. Additionally, ensure that the Access-Control-Allow-Credentials header is not set to true.