New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 3 users
Status: Fixed
Owner:
Email to this user bounced
Closed: Sep 2014
Cc:



Sign in to add a comment
Flash memory corruption (integer overflow?) concatenating strings to ~4GB in size
Reported by cevans@google.com, Jul 25 2014 Back to list
Two variant SWFs are attached, along with the source.
These are ActionScript 2 source files / SWFs, so compile accordingly.

The first example creates a string that is >4GB in length and things go wrong (buffer overflow; crash in memcpy) when trying to append this errant string to another string.

The second example creates a string that is 4GB-1 in length and things go wrong similarly but slightly differently.

Some notes on this bug:

- The attack does not require much memory, because very large Flash strings can be built as a series of repeated references to a single smaller string.

- If you build strings of exactly 4GB in length, no crash will be observed because the length will appear to be 0, which will cause different, non-crashing behavior.

- This bug is very similar to a recent Safari bug: http://googleprojectzero.blogspot.com/2014/07/pwn4fun-spring-2014-safari-part-i_24.html
Despite involving a perceived attempt to copy 4GB of data into an undersized buffer, the bug is readily exploitable due to some nice tricks.

Given the similarity to other publicly analyzed exploitable bugs, a 90-day disclosure deadline applies.
 
AS2StringConcat.as
439 bytes Download
AS2StringConcat2.as
462 bytes Download
AS2StringConcat2.swf
398 bytes Download
AS2StringConcat.swf
384 bytes Download
Comment 1 by cevans@google.com, Jul 27 2014
Labels: Id-2925
Comment 2 by cevans@google.com, Sep 5 2014
Labels: CVE-2014-0550
Comment 3 by cevans@google.com, Sep 9 2014
Labels: Fixed-2014-Sep-9
Status: Fixed
http://helpx.adobe.com/security/products/flash-player/apsb14-21.html

Will derestrict in a week or so, etc.
Comment 4 by cevans@google.com, Sep 23 2014
Labels: -Restrict-View-Commit
Making public.
Sign in to add a comment