cbcvebase.
CVE-2016-2386
published 2016-02-16

CVE-2016-2386: SQL injection vulnerability in the UDDI server in SAP NetWeaver J2EE Engine 7.40 allows remote attackers to execute arbitrary SQL commands via unspecified…

PriorityP194critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2022-06-30
Exploited in the wild
EPSS
71.06%
99.3th percentile
SQL injection vulnerability in the UDDI server in SAP NetWeaver J2EE Engine 7.40 allows remote attackers to execute arbitrary SQL commands via unspecified vectors, aka SAP Security Note 2101079.

Affected

1 ranges
VendorProductVersion rangeFixed in
sapnetweaver_application_server_java

Detection & IOCsextracted from sources · hover to see the quote

url/UDDISecurityService/UDDISecurityImplBean
commandx' AND 1=(SELECT COUNT(*) FROM BC_UDV3_EL8EM_KEY) or '1'='1
command1' AND 1=(select COUNT(*) from J2EE_CONFIGENTRY, UME_STRINGS where UME_STRINGS.PID like '%PRIVATE_DATASOURCE.un:Administrator%' and UME_STRINGS.VAL like '%SHA-512%') AND '1'='1
port50000
snort
alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET EXPLOIT Possible SAP NetWeaver SQL Injection Attempt Inbound (CVE-2016-2386)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/UDDISecurityImplBean"; fast_pattern; http.request_body; content:""; pcre:"/^[^\x3c]{,100}\x27/Ri"; reference:cve,2016-2386; classtype:attempted-admin; sid:2038696; rev:2; metadata:attack_target Server, created_at 2022_08_31, cve CVE_2016_2386, deployment Perimeter, deployment Internal, confidence Medium, signature_severity Major, tag Exploit, tag CISA_KEV, updated_at 2024_03_08, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;)
  • Exploit targets HTTP POST requests to the URI path /UDDISecurityService/UDDISecurityImplBean with Content-Type text/xml;charset=UTF-8 and an empty SOAPAction header; the body contains a SOAP envelope with a single-quote SQL injection payload inside the <authInfo> element.
  • The time-based blind SQLi payload uses a cross-join of J2EE_CONFIGENTRY and UME_STRINGS tables; a server response time exceeding ~1.3 seconds indicates successful injection. Monitor for anomalously slow responses on the UDDI endpoint.
  • Attacker enumerates SAP user credentials by querying UME_STRINGS for PID values matching the pattern '%PRIVATE_DATASOURCE.un:<username>%' and VAL matching SHA-512 hash strings. Detection should alert on SQL fragments containing PRIVATE_DATASOURCE.un: in HTTP request bodies.
  • The CVE-2016-2388 information disclosure endpoints can be used as a precursor to this SQLi attack to harvest valid SAP usernames before exploitation.
  • Alternative large tables used in the time-based injection to force delays include T_CHUNK (noted as very large), T_DOMAIN, T_SESSION, UME_ACL_PERM, UME_ACL_PERM_MEM, UME_STRINGS_PERM, UME_STRINGS_ACTN, BC_DDDBDP, BC_COMPVERS, TC_WDRR_MRO_LUT, TC_WDRR_MRO_FILES. SQL in request bodies referencing these table names should be treated as suspicious.
  • ·The exploit's timing threshold of 1.3 seconds is calibrated for a local SAP test server. In production environments with higher latency, this threshold must be tuned upward to avoid false negatives; conversely, a very low threshold may produce false positives.
  • ·The PoC hardcodes 'Administrator' as the target username, but real-world attackers will substitute other usernames (e.g., j2ee_admin). Detection rules should not be limited to the string 'Administrator'.
  • ·The exploit only retrieves the first 24 characters of the hash by default (loop range hardcoded to 24); the full hash may be longer. Defenders should not assume a 24-character limit when hunting for exfiltrated data.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.