Skip to content

Commit

Permalink
Land #15740, ghostcat meta updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gwillcox-r7 committed Oct 3, 2021
2 parents c4639fa + 43d77d6 commit ef4bae2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions documentation/modules/auxiliary/admin/http/tomcat_ghostcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Description

This module can be used to retrieve arbitrary files from anywhere in the web application, including the `WEB-INF` and `META-INF`
directories and any other location that can be reached via ServletContext.getResourceAsStream() on Apache Tomcat servers.
directories and any other location that can be reached via `ServletContext.getResourceAsStream()` on Apache Tomcat servers.
It also allows the attacker to process any file in the web application as JSP.

### Setup
Expand All @@ -27,7 +27,7 @@ docker run --name tomcat --rm -p 8080:8080 -p 8009:8009 tomcat:8.5.32
## Options

### FILENAME
The file you would like to retrieve from the target web application.
The file you would like to retrieve from the target web application. Defaults to `/WEB-INF/web.xml`

### AJP_PORT
The port on the target that is running the Apache JServ Protocol (AJP).
Expand Down
14 changes: 11 additions & 3 deletions modules/auxiliary/admin/http/tomcat_ghostcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def initialize(info = {})
super(
update_info(
info,
'Name' => 'Ghostcat',
'Name' => 'Apache Tomcat AJP File Read',
'Description' => %q{
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache
Tomcat. Tomcat treats AJP connections as having higher trust than, for example, a similar HTTP connection.
Expand Down Expand Up @@ -34,9 +34,17 @@ def initialize(info = {})
],
'License' => MSF_LICENSE,
'References' => [
['CVE', '2020-1938']
['CVE', '2020-1938'],
['EDB', '48143'],
['URL', 'https://www.chaitin.cn/en/ghostcat']
],
'DisclosureDate' => '2020-02-20'
'DisclosureDate' => '2020-02-20',
'Notes' => {
'AKA' => ['Ghostcat'],
'Stability' => ['CRASH_SAFE'],
'Reliability' => [],
'SideEffects' => []
}
)
)
register_options(
Expand Down

0 comments on commit ef4bae2

Please sign in to comment.