CVSS Summary
Score | 5.8 Medium |
---|---|
Vector | Network |
Complexity | Medium |
Authentication | None |
Confidentiality | Partial |
Integrity | Partial |
Availability | None |
Last revised:
Relevanssi has the option to provide a “did you mean” message which requires adding some code to the theme and enabling the logging of user queries. When printing the “did you mean” message, a stored query is output without proper escaping.
The fact that the queries are stored means that we can evade the XSS prevention measures employed by some browsers.
Current state: Fixed
Score | 5.8 Medium |
---|---|
Vector | Network |
Complexity | Medium |
Authentication | None |
Confidentiality | Partial |
Integrity | Partial |
Availability | None |
<?php if (function_exists('relevanssi_didyoumean')) { relevanssi_didyoumean(get_search_query(), "<p>Did you mean: ", "</p>", 5); }?>
to the file search.php after get_header()
/?s=hel%3Cscript%3E/*%3C*/alert(1)%3C/script%3E
/?s=he%3Cscript%3E/*%3C*/alert(2)%3C/script%3E
Upgrade to version 3.5.8 or later.