Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-32827— Arbitrary code execution in MockServer

Quick assessment

Affected
mock-server mockserver
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

MockServer是通过 HTTP 或 HTTPS 模拟任何服务器或服务,例如 REST 或 RPC 服务。 MockServer存在跨站脚本漏洞,该漏洞源于可以诱骗受害者在本地运行MockServer时访问恶意站点的攻击者可利用该漏洞,将能够在MockServer机器上运行任意代码。MockServer的默认CORS配置过于宽泛,允许任何站点发送跨站点请求。

CVSS 6.1 · Medium EPSS 2.16% · P82

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-32827

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Arbitrary code execution in MockServer
Source: CVE Program / CVE List V5
Vulnerability Description
MockServer is open source software which enables easy mocking of any system you integrate with via HTTP or HTTPS. An attacker that can trick a victim into visiting a malicious site while running MockServer locally, will be able to run arbitrary code on the MockServer machine. With an overly broad default CORS configuration MockServer allows any site to send cross-site requests. Additionally, MockServer allows you to create dynamic expectations using Javascript or Velocity templates. Both engines may allow an attacker to execute arbitrary code on-behalf of MockServer. By combining these two issues (Overly broad CORS configuration + Script injection), an attacker could serve a malicious page so that if a developer running MockServer visits it, they will get compromised. For more details including a PoC see the referenced GHSL-2021-059.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输出中的特殊元素转义处理不恰当(注入)
Source: CVE Program / CVE List V5
Vulnerability Title
MockServer 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
MockServer是通过 HTTP 或 HTTPS 模拟任何服务器或服务,例如 REST 或 RPC 服务。 MockServer存在跨站脚本漏洞,该漏洞源于可以诱骗受害者在本地运行MockServer时访问恶意站点的攻击者可利用该漏洞,将能够在MockServer机器上运行任意代码。MockServer的默认CORS配置过于宽泛,允许任何站点发送跨站点请求。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
mock-server mockserver all -

II. Public POCs for CVE-2021-32827

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-32827

请登录查看更多情报信息。

Vendor Advisories for CVE-2021-32827 (1)

Other References for CVE-2021-32827 (1)

IV. Related Vulnerabilities