-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from fullhunt/cve-2022-42889-1
Support for CVE-2022-42889
- Loading branch information
Showing
3 changed files
with
50 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
tests/ | ||
tests/ | ||
venv/ |
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
![](https://dkh9ehwkisc4.cloudfront.net/static/files/80e52a5b-7d72-44c2-8187-76a2a58f5657-demo.png) | ||
|
||
|
||
# Features | ||
|
||
- Support for lists of URLs. | ||
|
@@ -14,7 +13,14 @@ | |
- WAF Bypass payloads. | ||
|
||
--- | ||
# 🚨 Announcement | ||
|
||
# 🚨 Annoucement (October 20th, 2022) | ||
|
||
FullHunt released an update to identify Apache Commons Text RCE (CVE-2022-42889). Apache Commons Text RCE is highly similar to Log4J RCE, and we recommend patching it as soon as possible. Vulnerable applications allow full remote-code execution. If help is needed in scanning and discovering this vulnerability on your infrastructure, please get in touch at ([email protected]). | ||
|
||
![](https://dkh9ehwkisc4.cloudfront.net/static/files/545a0960-3dc4-4157-bf82-c79d0b73a3e7-CVE-2022-42889-demo.png) | ||
|
||
# 🚨 Announcement (December 17th, 2021) | ||
|
||
There is a patch bypass on Log4J v2.15.0 that allows a full RCE. FullHunt added community support for log4j-scan to reliably detect CVE-2021-45046. If you're having difficulty discovering and scanning your infrastructure at scale or keeping up with the Log4J threat, please get in touch at ([email protected]). | ||
|
||
|
@@ -28,18 +34,16 @@ We have been researching the Log4J RCE (CVE-2021-44228) since it was released, a | |
|
||
It supports DNS OOB callbacks out of the box, there is no need to set up a DNS callback server. | ||
|
||
|
||
|
||
|
||
# Usage | ||
|
||
```python | ||
$ python3 log4j-scan.py -h | ||
python3 log4j-scan.py -h | ||
[•] CVE-2021-44228 - Apache Log4j RCE Scanner | ||
[•] Scanner provided by FullHunt.io - The Next-Gen Attack Surface Management Platform. | ||
[•] Secure your External Attack Surface with FullHunt.io. | ||
usage: log4j-scan.py [-h] [-u URL] [-p PROXY] [-l USEDLIST] [--request-type REQUEST_TYPE] [--headers-file HEADERS_FILE] [--run-all-tests] [--exclude-user-agent-fuzzing] | ||
[--wait-time WAIT_TIME] [--waf-bypass] [--custom-waf-bypass-payload CUSTOM_WAF_BYPASS_PAYLOAD] [--test-CVE-2021-45046] | ||
[--wait-time WAIT_TIME] [--waf-bypass] [--custom-waf-bypass-payload CUSTOM_WAF_BYPASS_PAYLOAD] [--test-CVE-2021-45046] [--test-CVE-2022-42889] | ||
[--dns-callback-provider DNS_CALLBACK_PROVIDER] [--custom-dns-callback-host CUSTOM_DNS_CALLBACK_HOST] [--disable-http-redirects] | ||
|
||
optional arguments: | ||
|
@@ -63,6 +67,8 @@ optional arguments: | |
Test with custom WAF bypass payload. | ||
--test-CVE-2021-45046 | ||
Test using payloads for CVE-2021-45046 (detection payloads). | ||
--test-CVE-2022-42889 | ||
Test using payloads for Apache Commons Text RCE (CVE-2022-42889). | ||
--dns-callback-provider DNS_CALLBACK_PROVIDER | ||
DNS Callback provider (Options: dnslog.cn, interact.sh) - [Default: interact.sh]. | ||
--custom-dns-callback-host CUSTOM_DNS_CALLBACK_HOST | ||
|
@@ -79,7 +85,6 @@ $ python3 log4j-scan.py -u https://log4j.lab.secbot.local | |
|
||
## Scan a Single URL using all Request Methods: GET, POST (url-encoded form), POST (JSON body) | ||
|
||
|
||
```shell | ||
$ python3 log4j-scan.py -u https://log4j.lab.secbot.local --run-all-tests | ||
``` | ||
|
@@ -121,17 +126,19 @@ FullHunt is the next-generation attack surface management platform. FullHunt ena | |
FullHunt provides an enterprise platform for organizations. The FullHunt Enterprise Platform provides extended scanning and capabilities for customers. FullHunt Enterprise platform allows organizations to closely monitor their external attack surface, and get detailed alerts about every single change that happens. Organizations around the world use the FullHunt Enterprise Platform to solve their continuous security and external attack surface security challenges. | ||
|
||
# Legal Disclaimer | ||
This project is made for educational and ethical testing purposes only. Usage of log4j-scan for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program. | ||
|
||
This project is made for educational and ethical testing purposes only. Usage of log4j-scan for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program. | ||
|
||
# License | ||
The project is licensed under MIT License. | ||
|
||
The project is licensed under MIT License. | ||
|
||
# Author | ||
*Mazin Ahmed* | ||
* Email: *mazin at FullHunt.io* | ||
* FullHunt: [https://fullhunt.io](https://fullhunt.io) | ||
* Website: [https://mazinahmed.net](https://mazinahmed.net) | ||
* Twitter: [https://twitter.com/mazen160](https://twitter.com/mazen160) | ||
* Linkedin: [http://linkedin.com/in/infosecmazinahmed](http://linkedin.com/in/infosecmazinahmed) | ||
|
||
_Mazin Ahmed_ | ||
|
||
- Email: _mazin at FullHunt.io_ | ||
- FullHunt: [https://fullhunt.io](https://fullhunt.io) | ||
- Website: [https://mazinahmed.net](https://mazinahmed.net) | ||
- Twitter: [https://twitter.com/mazen160](https://twitter.com/mazen160) | ||
- Linkedin: [http://linkedin.com/in/infosecmazinahmed](http://linkedin.com/in/infosecmazinahmed) |
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