CVE-2009-0940 - Cross-Site Request Forgery (CSRF)

Severity

51%

Complexity

49%

Confidentiality

106%

Multiple cross-site request forgery (CSRF) vulnerabilities in the HP Embedded Web Server (EWS) on HP LaserJet Printers, Edgeline Printers, and Digital Senders allow remote attackers to hijack the intranet connectivity of arbitrary users for requests that (1) print documents via unknown vectors, (2) modify the network configuration via a NetIPChange request to hp/device/config_result_YesNo.html/config, or (3) change the password via the Password and ConfirmPassword parameters to hp/device/set_config_password.html/config.

Multiple cross-site request forgery (CSRF) vulnerabilities in the HP Embedded Web Server (EWS) on HP LaserJet Printers, Edgeline Printers, and Digital Senders allow remote attackers to hijack the intranet connectivity of arbitrary users for requests that (1) print documents via unknown vectors, (2) modify the network configuration via a NetIPChange request to hp/device/config_result_YesNo.html/config, or (3) change the password via the Password and ConfirmPassword parameters to hp/device/set_config_password.html/config.

CVSS 2.0 Base Score 5.1. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (AV:N/AC:H/Au:N/C:P/I:P/A:P).

Demo Examples

Cross-Site Request Forgery (CSRF)

CWE-352

This example PHP code attempts to secure the form submission process by validating that the user submitting the form has a valid session. A CSRF attack would not be prevented by this countermeasure because the attacker forges a request through the user's web browser in which a valid session already exists.

The following HTML is intended to allow a user to update a profile.


               
</form>

profile.php contains the following code.


               
}//if the session is registered to a valid user then allow update
exit;// Redirect user to login page
// The user session is valid, so process the request// and update the information
echo "Your profile has been successfully updated.";// read in the data from $POST and send an update// to the database

This code may look protected since it checks for a valid session. However, CSRF attacks can be staged from virtually any tag or HTML construct, including image tags, links, embed or object tags, or other attributes that load background images.

The attacker can then host code that will silently change the username and email address of any user that visits the page while remaining logged in to the target web application. The code might be an innocent-looking web page such as:


               
</form>
form.submit();// send to profile.php

Notice how the form contains hidden fields, so when it is loaded into the browser, the user will not notice it. Because SendAttack() is defined in the body's onload attribute, it will be automatically called when the victim loads the web page.

Assuming that the user is already logged in to victim.example.com, profile.php will see that a valid user session has been established, then update the email address to the attacker's own address. At this stage, the user's identity has been compromised, and messages sent through this profile could be sent to the attacker's address.

Overview

Type

HP

First reported 15 years ago

2009-03-18 21:00:00

Last updated 6 years ago

2018-10-10 19:32:00

Affected Software

HP Network Printer HP Digital Sender 8100C

HP Network Printer HP Digital Sender 9100C

HP Network Printer HP Digital Sender 9200C

HP color laserjet 1500 printer

HP color laserjet 2500

HP color laserjet 2500l

HP color laserjet 2500lse

HP color laserjet 2500n

HP color laserjet 2500tn

HP color laserjet 4600

HP Color LaserJet 4650

HP Color LaserJet 4700

HP Color LaserJet 4730 MFP printer

HP Color LaserJet 5550

HP color laserjet 8500 printer

HP color laserjet 8550 printer

HP Color LaserJet 9500

HP Color LaserJet 9500 MFP

HP laserjet 2200 printer

HP laserjet 2200dtn printer

HP LaserJet 2300DN

HP laserjet 2430

HP laserjet 2500

HP laserjet 2500c printer

HP laserjet 2600c printer

HP LaserJet 2600N

HP laserjet 3000

HP laserjet 3700

HP laserjet 4 printer

HP laserjet 4000 printer

HP LaserJet 4000N

HP LaserJet 4050

HP laserjet 4100mfp

HP LaserJet 4100MFP

HP laserjet 4200 printer

HP laserjet 4200ln printer

HP laserjet 4300 printer

HP LaserJet 4345 MFP printer

HP LaserJet 4350DTN

HP LaserJet 4650DN

HP laserjet 4m plus printer

HP laserjet 5 printer

HP LaserJet 5000 Series

HP LaserJet 5000 Series firmware R.25.15

r.25.15

HP LaserJet 5000 Series firmware R.25.47

r.25.47

HP laserjet 5100 printer

HP LaserJet 5100 Series firmware V.29.12

v.29.12

HP LaserJet 5100DTN

HP laserjet 5m printer

HP LaserJet 8150DN

HP laserjet 9000

HP laserjet 9000mfp

HP LaserJet 9000MFP

HP LaserJet 9040MPF

HP laserjet 9050

HP LaserJet 9050 MFP printer

HP LaserJet 9050MPF

HP laserjet 9055

HP laserjet 9065

HP laserjet 9500

HP LaserJet 9500MPF

HP LaserJet M3027 MFP printer

HP LaserJet M3035 MFP printer

HP LaserJet M4345 MFP

HP LaserJet M5025 MFP printer

HP LaserJet M5035 MFP

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.