Skip to content
CVE-2026-137706 Elastic Security · Elastic

Detect Smart Portal Missing Authorization, Unauthorized Active Directory Account Addition (CVE-2026-137706) in Elastic Security

Detects exploitation of CVE-2026-137706, a Missing Authorization (CWE-862) vulnerability in Direk Tech's Smart Portal. An authenticated remote attacker with low privileges can invoke privileged account-management functionality that lacks proper authorization checks, allowing them to add an attacker-specified account into Active Directory (and potentially into privileged groups). Because the flaw is a broken access-control issue rather than a memory-corruption bug, exploitation manifests as (1) web-application requests to account-provisioning endpoints by non-administrative Smart Portal users, and (2) correlated Active Directory account-creation / group-membership-change events (Windows Security 4720/4728/4732/4756) attributed to the Smart Portal service account shortly after. Detection focuses on this cross-correlation plus anomalous invocation of the privileged provisioning function by a low-privilege session.

MITRE ATT&CK

Tactic
Privilege Escalation Persistence Initial Access

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-4120f4eb95 · https://df00tech.com/detections/CVE-2026-137706 · licence: https://df00tech.com/detections/licence
sequence by host.name with maxspan=5m
  [ any where event.category == "web" and url.path in ("/api/account/add", "/api/ad/user", "/SmartPortal/Account/Create", "/api/directory/adduser") and http.request.method in ("POST", "PUT") and http.response.status_code >= 200 and http.response.status_code < 300 ]
  [ any where event.code in ("4720", "4728", "4732", "4756") ]
critical severity medium confidence

EQL sequence correlating a successful Smart Portal account-add web request with a subsequent AD account creation or privileged group modification on the same host within 5 minutes.

Data Sources

Web/proxy logs (ECS)Windows Security event logs (winlogbeat)

Required Tables

logs-*winlogbeat-*

False Positives & Tuning

  • Authorized administrator provisioning through the portal.
  • Identity automation pipelines.
  • Security testing against provisioning endpoints.

Other platforms for CVE-2026-137706


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Simulate unauthorized provisioning endpoint call

    Expected signal: IIS/web log entry: POST /api/account/add with 2xx status from the low-privilege portal session.

  2. Test 2 Create AD account mimicking portal service action

    Expected signal: Windows Security Event 4720 (A user account was created) on the domain controller.

  3. Test 3 Add created account to a privileged AD group

    Expected signal: Windows Security Event 4728/4732 (member added to a security-enabled group) on the domain controller.

Last updated: Research depth: standard
References (2)

Response Playbook

Triage

  1. Identify the Smart Portal session that issued the account-add request: extract the authenticated portal username, source IP and user-agent from the IIS log, and confirm whether that user holds a legitimate administrative/provisioning role in the portal.
  2. Enumerate the AD object(s) created or modified in the correlated 4720/4728/4732/4756 events, record the target sAMAccountName, the groups it was added to (especially Domain Admins, Enterprise Admins, Account Operators) and the subject (service) account that performed the change.
  3. Confirm whether the account addition corresponds to any approved change ticket or HR onboarding record; absence of an authorizing ticket from a non-admin portal user strongly indicates exploitation.
  4. Review the portal application logs around the request time for authorization errors, role checks bypassed, or direct-object-reference manipulation on the provisioning endpoint.

Containment

  1. Disable or delete the attacker-created AD account immediately and remove it from any privileged groups it was added to; reset credentials of the Smart Portal service account used to perform the change.
  2. Block the offending Smart Portal session/user and source IP, and temporarily disable the vulnerable account-provisioning endpoint (WAF rule or application config) until a vendor patch is applied.
  3. Force a password reset and session invalidation for the compromised low-privilege portal account used to reach the endpoint.

Evidence Collection

  1. Preserve IIS/web access logs, Smart Portal application logs, and Windows Security event logs (4720/4728/4732/4756) covering the exploitation window.
  2. Export the AD object metadata (whenCreated, whenChanged, memberOf, and the modifying account) for the created account and capture a replication-metadata (repadmin /showobjmeta) snapshot.

Escalation Criteria

  • !Escalate to incident response immediately if the created account was added to a privileged group (Domain Admins, Enterprise Admins, Account Operators, Schema Admins).
  • !Escalate if the portal user who triggered the addition is non-administrative or if multiple accounts were created across a short window, indicating active abuse rather than a single misconfiguration.

Investigation Guide

Forensic Artifacts

  • >IIS W3C log entries for the provisioning endpoint with the authenticated portal username and source IP.
  • >Windows Security events 4720 (user created), 4728/4732/4756 (group membership added) attributed to the Smart Portal service account.
  • >AD object replication metadata (whenCreated / modifying DSA) for the newly created account.

Tuning Guidance

Baseline the legitimate Smart Portal service account(s) that perform authorized provisioning and the normal set of portal users with admin roles; exclude approved onboarding windows and scheduled identity-automation jobs. Tighten the correlation window (default 5m) if the portal performs synchronous AD writes, and alert-suppress known HR-integration source IPs. Prioritize alerts where the target account is added to a privileged group over plain user creation.


Hunting Queries

Hunts for AD account creations performed by the Smart Portal service/machine account and correlates them with subsequent privileged group additions.

Hunting — KQL
kql
// df00tech DF00-4120f4eb95 · https://df00tech.com/detections/CVE-2026-137706 · licence: https://df00tech.com/detections/licence
SecurityEvent | where EventID == 4720 | join kind=leftouter (SecurityEvent | where EventID in (4728,4732,4756)) on $left.TargetSid == $right.MemberSid | where SubjectUserName endswith "$" or SubjectUserName has "portal" | project TimeGenerated, SubjectUserName, TargetUserName, EventID
Hunting — SPL
spl
``` df00tech DF00-4120f4eb95 · https://df00tech.com/detections/CVE-2026-137706 · licence: https://df00tech.com/detections/licence ```
index=wineventlog sourcetype="WinEventLog:Security" EventCode=4720 | stats earliest(_time) as created by TargetUserName Account_Name | where like(Account_Name,"%portal%") OR like(Account_Name,"%svc%")

Atomic Red Team Tests

Test 1 Simulate unauthorized provisioning endpoint call
linux

Send an authenticated low-privilege POST to the Smart Portal account-add endpoint to generate the web-request telemetry half of the correlation (lab only).

Command

bash
curl -sk -X POST 'https://smartportal.lab.local/api/account/add' -H 'Cookie: SPSESSION=lowprivuser' -H 'Content-Type: application/json' -d '{"username":"atk_svc01","group":"Domain Admins"}'

Cleanup

bash
echo 'No local artifacts; remove any lab account created server-side via the AD cleanup test below.'

Expected Telemetry

IIS/web log entry: POST /api/account/add with 2xx status from the low-privilege portal session.

Expected Detection

KQL/SPL web-request leg matches; full alert fires when correlated with the AD creation event below.

Test 2 Create AD account mimicking portal service action
windows

Create a domain user account to emulate the AD-side telemetry (4720) produced when the vulnerable portal performs the provisioning (lab DC only).

Command

powershell
net user atk_svc01 P@ssw0rd!23 /add /domain

Cleanup

powershell
net user atk_svc01 /del /domain

Expected Telemetry

Windows Security Event 4720 (A user account was created) on the domain controller.

Expected Detection

AD-creation leg of the KQL/SPL/EQL correlation matches EventID 4720.

Test 3 Add created account to a privileged AD group
windows

Add the simulated account to a privileged group to emulate the escalation step the vulnerability enables (lab DC only).

Command

powershell
net group "Domain Admins" atk_svc01 /add /domain

Cleanup

powershell
net group "Domain Admins" atk_svc01 /del /domain

Expected Telemetry

Windows Security Event 4728/4732 (member added to a security-enabled group) on the domain controller.

Expected Detection

Privileged-group-addition leg matches EventID 4728/4732 and raises alert severity.

Related Detections