webhostingtalk.nl
advertentie
advertentie

Evenementen voor de komende 60 Dag(en)

Resultaten 1 tot 7 van de 7

Onderwerp: Decompression Bombs

          

  1.  
    #1
    Matthias Leu
    Gast
    n/a Berichten
    Berichten zijn liked



    Decompression Bombs

    As a followup to http://www.securityfocus.com/bid/9393/, where we
    pointed out vulnerabilities of some antivirus-gateways while
    decompressing bzip2-bombs, we were interested in the behaviour of
    various applications that process compressed data.

    It looks as if not only bzip2 bombs, but also decompression bombs in
    general might cause problems. Compression is used in many applications,
    but hardly any maximum size limits are checked during the decompression
    of untrusted content.

    We've created several bombs (bzip2, gzip, zip, mime-embedded bombs, png
    and gif graphics, openoffice zip bombs). With these we tested some more
    applications like additional antivirus engines, various web browsers,
    openoffice.org, and the Gimp.

    As a result, much more applications as we thought crashed. The
    manufacturers of software should care more about the processing of
    untrusted input.

    For details see our full advisory, written by Dr. Peter Bieringer:
    http://www.aerasec.de/security/advis...erability.html

    Best regards,
    Dr. Matthias Leu
    --
    AERAsec Network Services and Security GmbH
    Wagenberger Strasse 1
    D-85662 Hohenbrunn, Germany
    http://www.aerasec.de



  2. advertentie



  3.  
    #2
    Myron Davis
    Gast
    n/a Berichten
    Berichten zijn liked



    RE: Decompression Bombs

    This as far as I know is fairly well known as we had a problem with this a
    while back (by accident).

    We put a little check in like this:

    unzip -l $SANITIZED_ZIP_FILE|tail -n 1|cut -f4 -d' '

    then checked the size .. if it was larger then oohh.. 400 megs, then drop
    it w/ an error for it being too large.

    easy way to generate a large zip file is to do something like this:

    dd if=/dev/zero of=testfile count=10000&&gzip testfile&&ls -la testfile

    should get huge file to test w/ mighty quickly, try sending that to a few
    virus scanners.

    Theoretically one could modify a worm to send random zip'd files of zeros
    along the way to different hosts to really kill the destinations
    computers.

    -Myron


    > Wow, This is a very interesting concept. Any vendor that relies on any
    > decompresion library could be vulnerable. Anything from something like
    > Photoshop to IE to virus scanners.
    >
    > The example files given on the website seem to require a password. Can
    > you provide it?
    >
    > Nice work and thanks!
    >
    > Dave Bachtel
    > IT Intern
    > RealTime Gaming
    > Atlanta, GA - USA
    > 404-459-4263 x139
    > ♥♣♦â™
    >
    >
    > -----Original Message-----
    > From: Matthias Leu [mailto:mleu@aerasec.de]
    > Sent: Tuesday, February 03, 2004 12:04 PM
    > To: bugtraq@securityfocus.com
    > Subject: Decompression Bombs
    >
    >
    > As a followup to http://www.securityfocus.com/bid/9393/, where we
    > pointed out vulnerabilities of some antivirus-gateways while
    > decompressing bzip2-bombs, we were interested in the behaviour of
    > various applications that process compressed data.
    >
    > It looks as if not only bzip2 bombs, but also decompression bombs in
    > general might cause problems. Compression is used in many applications,
    > but hardly any maximum size limits are checked during the decompression
    > of untrusted content.
    >
    > We've created several bombs (bzip2, gzip, zip, mime-embedded bombs, png
    > and gif graphics, openoffice zip bombs). With these we tested some more
    > applications like additional antivirus engines, various web browsers,
    > openoffice.org, and the Gimp.
    >
    > As a result, much more applications as we thought crashed. The
    > manufacturers of software should care more about the processing of
    > untrusted input.
    >
    > For details see our full advisory, written by Dr. Peter Bieringer:
    > http://www.aerasec.de/security/advis...erability.html
    >
    > Best regards,
    > Dr. Matthias Leu
    > --
    > AERAsec Network Services and Security GmbH
    > Wagenberger Strasse 1
    > D-85662 Hohenbrunn, Germany
    > http://www.aerasec.de
    >
    >
    >




  4.  
    #3
    Brian Dessent
    Gast
    n/a Berichten
    Berichten zijn liked



    Re: Decompression Bombs

    Myron Davis wrote:

    > This as far as I know is fairly well known as we had a problem with this a
    > while back (by accident).
    >
    > We put a little check in like this:
    >
    > unzip -l $SANITIZED_ZIP_FILE|tail -n 1|cut -f4 -d' '
    >
    > then checked the size .. if it was larger then oohh.. 400 megs, then drop
    > it w/ an error for it being too large.


    This check will fail for all but the most naive of bombs. For example,
    consider the file located at <http://www.unforgettable.dk/42.zip>. This
    file contains a number of recursively nested ZIP files, to a depth of
    5. Compressed it is only 41kB, yet unpacks to 4.5 PB
    (4,503,599,626,321,920 bytes) in total.

    $ unzip -l 42.zip
    Archive: 42.zip
    Length Date Time Name
    -------- ---- ---- ----
    34902 03-28-00 21:40 lib 3.zip
    34902 03-28-00 21:40 lib 1.zip
    34902 03-28-00 21:40 lib 2.zip
    34902 03-28-00 21:40 lib 0.zip
    34902 03-28-00 21:40 lib 4.zip
    34902 03-28-00 21:40 lib 5.zip
    34902 03-28-00 21:40 lib 6.zip
    34902 03-28-00 21:40 lib 7.zip
    34902 03-28-00 21:40 lib 8.zip
    34902 03-28-00 21:40 lib 9.zip
    34902 03-28-00 21:40 lib a.zip
    34902 03-28-00 21:40 lib b.zip
    34902 03-28-00 21:40 lib c.zip
    34902 03-28-00 21:40 lib d.zip
    34902 03-28-00 21:40 lib e.zip
    34902 03-28-00 21:40 lib f.zip
    -------- -------
    558432 16 files

    Your virus scanner will probably try to descend each of those archives,
    and will croak if it does not recognise this as malware.

    Brian


  5.  
    #4
    SBNelson@thermeon.com
    Gast
    n/a Berichten
    Berichten zijn liked



    RE: Decompression Bombs

    > dd if=/dev/zero of=testfile count=10000&&gzip testfile&&ls -la testfile
    No need to fill up your own disk -- do this instead:
    dd if=/dev/zero bs=1k count=10000 | gzip - > testfile.gz


  6.  
    #5
    Chris Green
    Gast
    n/a Berichten
    Berichten zijn liked



    Re: Decompression Bombs

    "Myron Davis" <myrond@xyxx.com> writes:

    > Theoretically one could modify a worm to send random zip'd files of zeros
    > along the way to different hosts to really kill the destinations
    > computers.
    >


    Is this all just back to fail open/fail closed? I have a file that
    will cause XXX virus scanner to crash. Does the SMTP agent view that
    as a reason to reject the email or does it pass it through?

    If it does a temporary rejection message because of some internal
    failure, the infection rateof these messages becomes very low. Not
    sure how virus scanners + SMTP servers interact with regards to
    tradition SMTP errors.

    It would be an effective anti-cleanup method though.
    --
    Chris Green <cmg@dok.org>
    Fame may be fleeting but obscurity is forever.



  7.  
    #6
    Bipin Gautam.
    Gast
    n/a Berichten
    Berichten zijn liked



    Re: Decompression Bombs

    In-Reply-To: <7DB0958915FDD611961400A0C98F18464E8DB1@WINTRIX.th ermeon.com>

    I feel.. softwares should check the actual intrigity of data first... before extracting the archive insted completely trusting on the header information.

    [this will indeed show down the decompression process to some extent...]

    But, if the decompressor engines are used by Anti-virus softwarem... etc it should break the operation and insted list it in its error logs.

    but say, a file is stored in a disk and the disk cluster that hold the header info. of the archive gets corrupt! in that case..... the only way to recover the data would be to check the intrigity of the archive and recover!

    ---the only solution could be, ... using small digital signatures in the archive [say, something like public key of PGP] and only trusted archive should be opened trusting it's header... otherwise, the decompressor engines should check the real intrigity
    of data as well, before proceding further. ----

    .... I do wanna know what are your views cauz, If you try to write a code to secure from such problems, it will certainly slow down a normal operation...

    [..I feel, soon the world will see digital certificates in JPG files (O; ]

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



    >> dd if=/dev/zero of=testfile count=10000&&gzip testfile&&ls -la testfile

    >No need to fill up your own disk -- do this instead:
    >dd if=/dev/zero bs=1k count=10000 | gzip - > testfile.gz
    >



  8.  
    #7
    Myron Davis
    Gast
    n/a Berichten
    Berichten zijn liked



    Re: Decompression Bombs

    only allow 3-4 layers of zip's, each time you uncompress the zip file, run
    the check on it.

    The whole purpose is too not uncompress the zip bomb and not cause a large
    resource drain on the system by tricking the scanner to waste unneeded
    cycles on thrashing against a uncompressible zip.

    I haven't done this, but I'd imagine if one ran a count for each zip file
    uncompressed , such as
    (following is just psueodo code)

    --
    TOTAL_SIZE = `$TOTAL_SIZE + unzip -l $SANITIZED_ZIP_FILE|tail -n 1|cut -f4
    -d' '`

    IF ($TOTAL_SIZE > $MAX_ALLOWED_SIZE)
    exit;
    --

    just keep a running account of the size, should stop these kinds of zip
    bombs cold.

    I imagine one could also add more fuzzy logic such as, x many layers deep
    of zip files adding to the more likely hood of a message/file being
    dropped as tainted.

    -Myron

    > Myron Davis wrote:
    >
    >> This as far as I know is fairly well known as we had a problem with this
    >> a
    >> while back (by accident).
    >>
    >> We put a little check in like this:
    >>
    >> unzip -l $SANITIZED_ZIP_FILE|tail -n 1|cut -f4 -d' '
    >>
    >> then checked the size .. if it was larger then oohh.. 400 megs, then
    >> drop
    >> it w/ an error for it being too large.

    >
    > This check will fail for all but the most naive of bombs. For example,
    > consider the file located at <http://www.unforgettable.dk/42.zip>. This
    > file contains a number of recursively nested ZIP files, to a depth of
    > 5. Compressed it is only 41kB, yet unpacks to 4.5 PB
    > (4,503,599,626,321,920 bytes) in total.
    >
    > $ unzip -l 42.zip
    > Archive: 42.zip
    > Length Date Time Name
    > -------- ---- ---- ----
    > 34902 03-28-00 21:40 lib 3.zip
    > 34902 03-28-00 21:40 lib 1.zip
    > 34902 03-28-00 21:40 lib 2.zip
    > 34902 03-28-00 21:40 lib 0.zip
    > 34902 03-28-00 21:40 lib 4.zip
    > 34902 03-28-00 21:40 lib 5.zip
    > 34902 03-28-00 21:40 lib 6.zip
    > 34902 03-28-00 21:40 lib 7.zip
    > 34902 03-28-00 21:40 lib 8.zip
    > 34902 03-28-00 21:40 lib 9.zip
    > 34902 03-28-00 21:40 lib a.zip
    > 34902 03-28-00 21:40 lib b.zip
    > 34902 03-28-00 21:40 lib c.zip
    > 34902 03-28-00 21:40 lib d.zip
    > 34902 03-28-00 21:40 lib e.zip
    > 34902 03-28-00 21:40 lib f.zip
    > -------- -------
    > 558432 16 files
    >
    > Your virus scanner will probably try to descend each of those archives,
    > and will croak if it does not recognise this as malware.
    >
    > Brian
    >




Forum Rechten

  • Je mag geen nieuwe onderwerpen plaatsen
  • Je mag geen reacties plaatsen
  • Je mag geen bijlagen toevoegen
  • Je mag jouw berichten niet wijzigen
  •  



webhostingtalk.nl
Webhostingtalk.nl © copyright 2001-2012 Alle Rechten Gereserveerd.

Content Relevant URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504