Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Spring4Shell.bcheck rule #84

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions vulnerability-classes/injection/Spring4Shell.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
metadata:
language: v1-beta
name: "Spring4Shell (Response)"
description: "Checks for the Spring4Shell vulnerability"
author: "Giriraj R (cipherlover)"
tags: "Srping4Shell", "CVE-2022-22965", "cve"

define:
spring4shell_payload = `class.module.classLoader.URLs%5B0%5D=0`
issueDetail = `The server has returned a response status code as "400" and along with "java.lang.IllegalArgumentException" error on the response body denoting that there is possibility for Spring4shell vulnerability`
issueRemediation = "Make sure you are up to date with patches and follow the remediation steps for CVE-2022-22965."

given request then
send request called check :
appending queries: `{spring4shell_payload}`

if {check.response.status_code} is "400" and "java.lang.IllegalArgumentException" in {check.response.body} then
GiriRaj249 marked this conversation as resolved.
Show resolved Hide resolved
report issue:
severity: high
confidence: firm
detail: `{issueDetail}`
remediation: `{issueRemediation}`
end if