Skip to content

Commit

Permalink
Create Apache Struts OGNL Console Publicly Accessible.bheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Anof-cyber authored Jul 7, 2023
1 parent d293e94 commit c317ad9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions other/Apache Struts OGNL Console Publicly Accessible.bheck
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

0 comments on commit c317ad9

Please sign in to comment.