Skip to content

Commit dd60e1a

Browse files
committed
Land rapid7#7833, update tomcat_administration module documentation
2 parents 99556b8 + b53ee13 commit dd60e1a

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Vulnerable Application
2+
3+
The administrator application was removed as of Tomcat 6. Tomcat 5.5.36 is available from [apache](https://archive.apache.org/dist/tomcat/tomcat-5/v5.5.36/). This does not have the `admin` app bundled though, and can be downloaded [here](https://archive.apache.org/dist/tomcat/tomcat-5/v5.5.36/bin/apache-tomcat-5.5.36-admin.zip).
4+
5+
To utilize the `admin` application, a user must have the permission `admin` applied to their account. The following user line will handle all necessary permissions:
6+
7+
```
8+
<user username="tomcat" password="tomcat" roles="admin"/>
9+
```
10+
11+
## Verification Steps
12+
13+
1. Install Tomcat 5.5 or older
14+
2. Install the admin app
15+
3. Start msfconsole
16+
4. Do: ```use auxiliary/admin/http/tomcat_administration```
17+
5. Do: ```set rhosts [ips]```
18+
6. Do: ```set tomcat_user [username]```
19+
7. Do: ```set tomcat_pass [username]```
20+
8. Do: ```set rport [port]```
21+
9. Do: ```run```
22+
10. Find all the Tomcat admin portals
23+
24+
## Options
25+
26+
**rport**
27+
28+
The default is set to `8180`, which is only default on FreeBSD. All other operating systems, and the software itself, default to `8080`.
29+
30+
## Scenarios
31+
32+
Example run against Tomcat 5.5.36 with admin module installed against Windows XP
33+
34+
```
35+
msf > use auxiliary/admin/http/tomcat_administration
36+
msf auxiliary(tomcat_administration) > set rport 8085
37+
rport => 8085
38+
msf auxiliary(tomcat_administration) > set rhosts 192.168.2.108
39+
rhosts => 192.168.2.108
40+
msf auxiliary(tomcat_administration) > set verbose true
41+
verbose => true
42+
msf auxiliary(tomcat_administration) > set tomcat_pass tomcat
43+
tomcat_pass => tomcat
44+
msf auxiliary(tomcat_administration) > set tomcat_user tomcat
45+
tomcat_user => tomcat
46+
msf auxiliary(tomcat_administration) > run
47+
48+
[*] http://192.168.2.108:8085/admin [Apache-Coyote/1.1] [Apache Tomcat/5.5.36] [Tomcat Server Administration] [tomcat/tomcat]
49+
[*] Scanned 1 of 1 hosts (100% complete)
50+
[*] Auxiliary module execution completed
51+
```

modules/auxiliary/admin/http/tomcat_administration.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ class MetasploitModule < Msf::Auxiliary
1414
def initialize
1515
super(
1616
'Name' => 'Tomcat Administration Tool Default Access',
17-
'Description' => 'Detect the Tomcat administration interface.',
17+
'Description' => 'Detect the Tomcat administration interface. The administration interface is included in versions 5.5 and lower.
18+
Port 8180 is the default for FreeBSD, 8080 for all others.',
19+
# version of admin interface source: O'Reilly Tomcat The Definitive Guide, page 82
1820
'References' =>
1921
[
2022
['URL', 'http://tomcat.apache.org/'],
@@ -25,7 +27,7 @@ def initialize
2527

2628
register_options(
2729
[
28-
Opt::RPORT(8180),
30+
Opt::RPORT(8180), # 8180 is default for FreeBSD. All other OSes it's 8080
2931
OptString.new('TOMCAT_USER', [ false, 'The username to authenticate as', '']),
3032
OptString.new('TOMCAT_PASS', [ false, 'The password for the specified username', '']),
3133
], self.class)

0 commit comments

Comments
 (0)