CVSS Summary
Score | 5.8 Medium |
---|---|
Vector | Network |
Complexity | Medium |
Authentication | None |
Confidentiality | Partial |
Integrity | Partial |
Availability | None |
Last revised:
Relevanssi Premium contains a function called relevanssi_didyoumean
which is meant to be added to the theme by theme authors.
That function tokenises the search query, and passes each token to a “spellchecker” which looks for terms in the database which are similar. If there are possible spelling mistakes, the tokens are replaced and the function prints “Did you mean:” followed by the new query. The new query is not escaped before being printed.
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=meo%3Cscript%3Ealert(1)%3C/script%3E
using a browser without XSS prevention (i.e. Firefox)Upgrade to version 1.14.9 or later.