-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add ActiveMQ Jolokia RCE Detection Module (CVE-2026-34197) (Fixes #1507) #1510
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
Open
Aarush289
wants to merge
22
commits into
OWASP:master
Choose a base branch
from
Aarush289:cve-2026-34197
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+107
−0
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0cc045d
Merge pull request #4 from OWASP/master
Aarush289 2a32fe2
Merge pull request #8 from OWASP/master
Aarush289 4090ae3
Merge pull request #9 from OWASP/master
Aarush289 2a0b83e
Add FortiWeb authentication bypass vulnerability check
Aarush289 b1ffe4e
Remove FortiWeb auth bypass vulnerability entry
Aarush289 6db5ee7
Fix vulnerability name in wp_plugin_cve_2021_38314.yaml
Aarush289 6fd226a
Rename CVE identifier from 39314 to 39320
Aarush289 03675d5
Merge pull request #10 from OWASP/master
Aarush289 0d3399e
Merge pull request #13 from OWASP/master
Aarush289 ace2db9
Merge pull request #14 from OWASP/master
Aarush289 0711d39
Merge pull request #16 from OWASP/master
Aarush289 0857127
Merge pull request #18 from OWASP/master
Aarush289 44a9ae6
Merge pull request #19 from OWASP/master
Aarush289 95ac772
Merge pull request #20 from OWASP/master
Aarush289 f5cc36a
New module added
Aarush289 a4e6fb8
severity corrected
Aarush289 f5a2acd
randomness removed from arguments
Aarush289 7cc7771
randomness removed
Aarush289 1a47bbf
Merge branch 'master' into cve-2026-34197
Aarush289 6cb8e2a
arguments in data updated
Aarush289 a96fbf5
add step to cover Unauthenticated cases
Aarush289 8e7f580
Merge branch 'master' into cve-2026-34197
Aarush289 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
106 changes: 106 additions & 0 deletions
106
nettacker/modules/vuln/activemq_cve_2026_34197_jolokia_rce.yaml
This file contains hidden or 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,106 @@ | ||
| info: | ||
| name: activemq_cve_2026_34197_jolokia_rce_vuln | ||
| author: Nettacker Team | ||
| severity: 8.8 | ||
| description: | | ||
| Detects CVE-2026-34197 in Apache ActiveMQ Classic via Jolokia API. | ||
| The vulnerability allows execution of addNetworkConnector which can | ||
| load remote configuration via vm:// and xbean: protocol. | ||
| This module sends a safe detection payload and checks for successful | ||
| execution indicators in the response. | ||
|
|
||
| reference: | ||
| - https://nvd.nist.gov/vuln/detail/CVE-2026-34197 | ||
| - https://horizon3.ai/attack-research/disclosures/cve-2026-34197-activemq-rce-jolokia/ | ||
|
|
||
| profiles: | ||
| - vuln | ||
| - http | ||
| - high_severity | ||
| - cve | ||
| - cve2026 | ||
| - activemq | ||
| - jolokia | ||
| - rce | ||
|
|
||
| payloads: | ||
| - library: http | ||
| steps: | ||
| - method: post | ||
| timeout: 10 | ||
| headers: | ||
| User-Agent: "{user_agent}" | ||
| Content-Type: "application/json" | ||
| Authorization: "Basic YWRtaW46YWRtaW4=" | ||
| ssl: false | ||
| url: | ||
| nettacker_fuzzer: | ||
| input_format: "{{schema}}://{target}:{{ports}}/api/jolokia/" | ||
| prefix: "" | ||
| suffix: "" | ||
| interceptors: | ||
| data: | ||
| schema: | ||
| - "http" | ||
| - "https" | ||
| ports: | ||
| - 8161 | ||
| - 80 | ||
| - 443 | ||
|
|
||
| data: | | ||
| {{ | ||
| "type": "exec", | ||
| "mbean": "org.apache.activemq:type=Broker,brokerName=localhost", | ||
| "operation": "addNetworkConnector", | ||
| "arguments": ["static:(vm://nettacker-probe-000?brokerConfig=none)"] | ||
| }} | ||
|
|
||
| response: | ||
| condition_type: and | ||
| conditions: | ||
| status_code: | ||
| regex: '200' | ||
| reverse: false | ||
| content: | ||
| regex: '(?s)(?=.*addNetworkConnector)(?=.*org.apache.activemq)' | ||
| reverse: false | ||
|
|
||
| - method: post | ||
| timeout: 10 | ||
| headers: | ||
| User-Agent: "{user_agent}" | ||
| Content-Type: "application/json" | ||
| ssl: false | ||
| url: | ||
| nettacker_fuzzer: | ||
| input_format: "{{schema}}://{target}:{{ports}}/api/jolokia/" | ||
| prefix: "" | ||
| suffix: "" | ||
| interceptors: | ||
| data: | ||
| schema: | ||
| - "http" | ||
| - "https" | ||
| ports: | ||
| - 8161 | ||
| - 80 | ||
| - 443 | ||
|
|
||
| data: | | ||
| {{ | ||
| "type": "exec", | ||
| "mbean": "org.apache.activemq:type=Broker,brokerName=localhost", | ||
| "operation": "addNetworkConnector", | ||
| "arguments": ["static:(vm://nettacker-probe-000?brokerConfig=none)"] | ||
| }} | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| response: | ||
| condition_type: and | ||
| conditions: | ||
| status_code: | ||
| regex: '200' | ||
| reverse: false | ||
| content: | ||
| regex: '(?s)(?=.*addNetworkConnector)(?=.*org.apache.activemq)' | ||
| reverse: false | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.