forked from PortSwigger/BChecks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Apache Struts OGNL Console Publicly Accessible.bheck
- Loading branch information
1 parent
d293e94
commit c317ad9
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
other/Apache Struts OGNL Console Publicly Accessible.bheck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
metadata: | ||
language: v1-beta | ||
name: "Apache Struts OGNL Console Publicly Accessible" | ||
description: "Apache Struts OGNL Console is public and could be exploited to gain access" | ||
author: "Sourav Kalal" | ||
|
||
define: | ||
potential_path = "/struts/webconsole.html?debug=console" | ||
|
||
given host then | ||
send request called check: | ||
method: "GET" | ||
path: {potential_path} | ||
|
||
if {check.response.status_code} is "200" and "title>OGNL Console" in {check.response.body} then | ||
report issue: | ||
severity: low | ||
confidence: firm | ||
detail: `Apache Struts OGNL Console found at {potential_path}.` | ||
remediation: "Restrict access to the struts console." | ||
end if |