PowerJob Server Predictable JWT Signing Key → Admin Token Forgery (CVE-2026-75431)
Published: 2026-11-25 • Researcher: unpredictable21 (public PoC repository and NVD-cited gist); PowerJob project (vendor source referenced in the advisory)
- Severity
- Critical
- CVE
- CVE-2026-75431
- Category
- web
- Affected product
- PowerJob Server (web console on port 7700 and the OpenAPI surface)
- Affected versions
- 5.1.2 and likely earlier versions (per the NVD description). The supplied NVD data has no structured product or version-range enumeration, so treat 5.1.2 as the confirmed affected release.
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-75431
- https://github.com/unpredictable21/CVE-2026-75431_PowerJob_jwt_key_predictable
- https://gist.github.com/unpredictable21/39e6ce22e4bc45b0e553d0fa6a6e4d1c
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-auth/src/main/java/tech/powerjob/server/auth/jwt/impl/DefaultSecretProvider.java
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-auth/src/main/java/tech/powerjob/server/auth/jwt/impl/JwtServiceImpl.java
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-openapi/src/main/java/tech/powerjob/server/openapi/service/impl/OpenApiSecurityServiceImpl.java
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-starter/src/main/resources/application-daily.properties
- https://github.com/PowerJob/PowerJob/blob/master/docker-compose.yml
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-08-11 |
| Author / Researcher | unpredictable21 (public PoC repository and NVD-cited gist); PowerJob project (vendor source referenced in the advisory) |
| CVE / Advisory | CVE-2026-75431 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) |
| Status | Weaponized |
| Tags | JWT, HS256, hardcoded-key, CWE-321, auth-bypass, token-forgery, PowerJob, Java, Spring-Boot, admin-takeover |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | PowerJob Server (web console on port 7700 and the OpenAPI surface) |
| Versions Affected | 5.1.2 and likely earlier versions (per the NVD description). The supplied NVD data has no structured product or version-range enumeration, so treat 5.1.2 as the confirmed affected release. |
| Language / Platform | Java (Spring Boot); MySQL-backed; HTTP on port 7700 |
| Authentication Required | No (the token is forged offline) |
| Network Access Required | Yes |
Summary
PowerJob Server 5.1.2 derives its HS256 JWT signing key from a hardcoded constant concatenated with the MD5 of the configured JDBC URL, and then Base64-decodes that string into the HMAC key. In default deployments the JDBC URL is published in plaintext in docker-compose and application-daily.properties, so an attacker can reconstruct the key entirely offline with no credentials. Combined with the recomputable login-verification value for the default admin password, this lets an attacker forge an admin JWT and authenticate to the web console; the same key also underpins OpenAPI app tokens. The public PoC derives the key, forges the token and confirms admin access against a live server.
Vulnerability Details
Root Cause
JwtServiceImpl builds the signing key as Base64Decode(BASE_SECURITY + md5(secret)), where BASE_SECURITY is a hardcoded constant in the source and the secret returned by DefaultSecretProvider is simply the MD5 hex of spring.datasource.core.jdbc-url. The JDBC URL is not a secret — it appears verbatim in the default docker-compose.yml, in powerjob-server-starter application-daily.properties, and in ordinary deployment documentation. Because both inputs to the key are public and deterministic, every deployment that keeps the default URL shares a derivable key instead of a random, persisted one. The key is used for HS256 web JWTs and for OpenAPI App Tokens. NVD classifies the flaw as CWE-321 (Use of a Hard-coded Cryptographic Key); the upstream write-up also maps it to CWE-798. A secondary check exists on the encryptedToken claim for PWJB accounts, but that value is a deterministic rePassword(password, username) digest, so the default admin password (powerjob_admin) makes it computable offline as well.
Attack Vector
An unauthenticated HTTP POST to a console API such as /namespace/list on port 7700, carrying a forged JWT in the PowerJwt header. The attacker derives the HS256 key offline from the public BASE_SECURITY constant and the MD5 of the JDBC URL, then builds the header and claims (username PWJB_ADMIN, the derived encryptedToken, sub PowerJob, a future exp) and signs them with HMAC-SHA256. If the admin password was changed, the web-token path is blocked by the encryptedToken mismatch, but the OpenAPI App Token claims (appId, password, encryptType) can be forged independently with the same key, and a leaked legitimate encryptedToken restores the web path.
Impact
Authentication bypass and arbitrary-user token forgery against the PowerJob console and OpenAPI, demonstrated as full admin access to namespace and application data. An attacker with the forged token can read and mutate server configuration, applications, jobs and worker records, which is the administrative foothold needed for code execution through the container/job management surfaces. The NVD description states that this allows a remote attacker to execute arbitrary code; the archived script demonstrates the authentication bypass that enables it rather than an RCE primitive of its own.
Environment / Lab Setup
OS: Linux x86_64 (Docker or bare metal)
Target: PowerJob Server 5.1.2, web console 127.0.0.1:7700,
MySQL at 127.0.0.1:3307 (database powerjob_daily),
JDBC URL: jdbc:mysql://127.0.0.1:3307/powerjob_daily?useUnicode=true&
characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
Attacker: Python 3 with the requests module (same host or LAN)
Tools: python3, curl, docker composeSetup Steps
| |
The default admin credentials (powerjob_admin) let the attacker recompute the login-verification digest offline. Changing the admin password does not remove the predictable key; it only invalidates that particular offline step.
Proof of Concept
Step-by-Step Reproduction
Baseline, no token — confirm the console rejects an unauthenticated call:
Shell script1 2 3 4curl -s -X POST http://127.0.0.1:7700/namespace/list \ -H 'Content-Type: application/json' \ -d '{"index":0,"pageSize":10}' # {"success":false,...,"message":"PowerJobAuthException: UserNotLoggedIn","code":"-100"}Derive the signing key — compute secret = BASE_SECURITY + md5(jdbc_url), then Base64-decode it (the upstream script adds padding when needed). The resulting key is 101 bytes in the reference lab.
Derive the encryptedToken — rePassword(“powerjob_admin”, “ADMIN”) yields ADMIN_b82a450701f6a71723fb99931fe35e18_b, byte-for-byte equal to the DB user_info.token_login_verify_info value for the default admin.
Forge the admin JWT — header {“typ”:“JWT”,“alg”:“HS256”} plus claims username=PWJB_ADMIN, encryptedToken from step 3, sub=PowerJob and exp set about 7 days ahead, signed with HMAC-SHA256 using the derived key.
Replay the forged token — send the same request with a PowerJwt header:
Shell script1python3 PowerJob_jwt_key.py 127.0.0.1:7700Confirm takeover — the response flips from UserNotLoggedIn to success:true with real namespace data.
Exploit Code
See
PowerJob_jwt_key.pyin this folder (upstream filename preserved). The upstream walkthrough and the confirmed response bodies are inupstream-README.md.
| |
The script takes the target as the first argument and an optional JDBC URL as the second; the hardcoded default is the lab URL, so other deployments must pass their real JDBC URL. Put the printed value in the PowerJwt header of a console request, or let the script do it.
Expected Output
| |
The exact namespace list and token strings depend on the target instance; the success:true transition is the proof. Upstream screenshots of both requests are linked from the source README.
Detection & Indicators of Compromise
- Console API calls (for example POST /namespace/list, /app/list, /job/list) carrying a PowerJwt header with no preceding successful /auth or login request from the same source.
- JWTs whose header is exactly {“typ”:“JWT”,“alg”:“HS256”}, whose sub is PowerJob, and whose encryptedToken matches the deterministic pattern
_<32 hex>b — especially ADMIN…_b for PWJB_ADMIN. - The same forged token, or tokens sharing one signature key, appearing from multiple source IPs or hosts, which indicates a shared derivable key rather than normal sessions.
- Admin activity from unfamiliar IPs or user agents, with 7-day token lifetimes and no refresh/login trail in the authentication logs.
- Server logs showing the admin account authenticated without a matching login event, or PowerJobAuthException: UserNotLoggedIn bursts from one client followed by a success from the same client.
SIEM / IDS Rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | See references: the NVD data does not name a fixed release. Upgrade to a PowerJob release that generates and persists a random signing key instead of deriving it from the JDBC URL. |
| Workaround | Replace DefaultSecretProvider with a deployment-specific random secret (environment or file), change the default admin password, and give OpenAPI app tokens a separate key from web JWTs. |
| Config Hardening | Restrict ports 7700 and the OpenAPI surface to trusted networks, enforce the encryptedToken secondary check for every account, rotate the signing key after any suspected exposure, and alert on PowerJwt use without a matching login. |
References
Notes
Auto-ingested from https://github.com/unpredictable21/CVE-2026-75431_PowerJob_jwt_key_predictable on 2026-11-25.
Review verdict: this is a genuine PoC, not a detector. The script derives the HS256 key offline, forges an admin JWT and sends it to a live console endpoint; the upstream README documents the verified success:true response and the byte-for-byte match with the stored login-verification value. The repository has no license file, so the single source file and README are archived with attribution for authorized research only.
Limitations: the exploit path demonstrated here is authentication bypass / admin token forgery. The NVD description says the flaw allows arbitrary code execution, but the archived script does not itself execute code on the server — it obtains the admin session from which container and job management surfaces can be reached. The hardcoded default JDBC URL must be replaced with the target’s real URL (second argument), and the offline encryptedToken step depends on the default admin password being unchanged. The upstream claim that OpenAPI app tokens are forgeable with the same key was not independently re-verified here. The PoC’s docstring refers to a filename powerjob_jwt_forge.py; the upstream file is PowerJob_jwt_key.py. Sibling entry pocs/web/2026-11-25_cve-2026-75430-poc covers an unauthenticated RCE in the PowerJob worker for the same release line. Do not run this against systems you do not own or have written authorization to test.
| |