| Название | xuxueli xxl-job 3.5.0, 3.5.1-SNAPSHOT Server-Side Request Forgery |
|---|
| Описание | Server-Side Request Forgery (SSRF) in the AI job handler of XXL-JOB affecting release 3.5.0 and 3.5.1-SNAPSHOT (latest master unfixed as of 2026-10) allows a low-privileged authenticated user to make the executor server issue arbitrary outbound HTTP requests to attacker-chosen destinations, with the response content written back into the job execution log where the attacker can read it. The same flow sends credentials to whatever destination the attacker specifies via the HTTP Authorization header.
The sample module xxl-job-executor-sample-springboot-ai ships a job handler AIXxlJob that parses its job parameter as JSON and invokes a remote workflow service: AIXxlJob.java line 157 reads the job parameter, line 167 deserializes it into a DifyParam object containing baseUrl and apiKey, and line 197 calls DifyClientFactory.createWorkflowClient(difyParam.getBaseUrl(), difyParam.getApiKey()) followed by runWorkflow. The baseUrl is never validated against an allowlist, so any user who can create or edit a job (normal permission is sufficient) can point it at internal-only targets such as cloud metadata endpoints or intranet services; the executor performs the request from its own network position, and line 201 logs the full workflow response into the schedule log, making this a fully readable (non-blind) SSRF suitable for intranet topology discovery and interaction with internal services. Additionally, the configured API key is transmitted as a Bearer token in the Authorization header to whatever baseUrl the job parameter specifies, so redirecting the baseUrl to an attacker-controlled host exfiltrates the credential in plaintext.
Impact: intranet exploration from the executor's trusted network position and exfiltration of workflow credentials (CWE-918). Verified on a live 3.5.1-SNAPSHOT deployment: a low-privileged user created a job of this type with baseUrl pointing to an external listening host; the executor connected back and the Authorization header was captured, and responses from internal targets were readable in the job log. The v3.5.0 release source contains identical code (AIXxlJob.java lines 157/167/197/201). |
|---|
| Пользователь | test008 (UID 99871) |
|---|
| Представление | 23.10.2026 10:52 (1 месяц назад) |
|---|
| Модерация | 22.11.2026 17:25 (1 month later) |
|---|
| Статус | принято |
|---|
| Запись VulDB | 442134 [xuxueli xxl-job 3.5.0/3.5.1-SNAPSHOT AI Executor AIXxlJob.java difyWorkflowJobHandler baseUrl эскалация привилегий] |
|---|
| Баллы | 17 |
|---|