Skip to content

Conversation

@JohnAsbjorn
Copy link
Contributor

Template / PR Information

I created a template that detected certain HP printer installations that use default credentials (Administrator:blank).

Template Validation

I've validated this template locally?

  • YES
  • NO

Additional Details (leave it blank if not applicable)

Below, is the verified output confirming that the template works as intended and the matchers catch the vulnerability accurately.

The screenshots illustrate the initial GET request needed to access the login page, and the subsequent POST request made to the server using the default credentials and regex'd CSRF token. Lastly, the template matchers in the last screenshot show the template matched the words "User: Administrator" which is only present when successfully logged in as the administrator user, as well as the new cookies that are set with the Set-Cookie header in the response from the web server.

In total, the template is configured to match either the words "User: Administrator" or catch the new cookie that is offered by the server.

HP Default Creds Poc 1
HP Default Creds Poc 2
HP Default Creds Poc 3
HP Default Creds Poc 4

Additional References:

@GeorginaReeder
Copy link

Thanks so much for your contribution @JohnAsbjorn , we appreciate it!

@JohnAsbjorn
Copy link
Contributor Author

Always happy to help!

@DhiyaneshGeek DhiyaneshGeek self-assigned this Apr 22, 2025
@DhiyaneshGeek DhiyaneshGeek added the Done Ready to merge label Jun 13, 2025
@DhiyaneshGeek DhiyaneshGeek changed the title Added HP printer default credentials template. Added Hewlett Packard LaserJet Printer - Default Login Jun 13, 2025
@DhiyaneshGeek DhiyaneshGeek requested a review from pussycat0x June 15, 2025 10:32
@pussycat0x pussycat0x merged commit c05b240 into projectdiscovery:main Jun 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Done Ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants