There´s a possibility to include code into every page using AjaxSearch.
Due to an error in parsing every input (and especially quotes!) foreign code can be easily inserted and executed.
Just try something like this:
Enter
\\\""""" onmouseover=alert(212)////
into nearly every AjaxSearch. Move your mouse over the search-input-field afterwards.
Even modxcms.com may be XSS´ed this easy.
(When trying to fix: disable MagicQuotes in php.ini and try to use PHP´s htmlentities with parameter ENT_QOUTES and you´re done)
Cheers.