// For flags

CVE-2021-32827

Arbitrary code execution in MockServer

Severity Score

9.6
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

MockServer es un software de código abierto que permite burlarse fácilmente de cualquier sistema con el que se integre por medio de HTTP o HTTPS. Un atacante que pueda engañar a una víctima para que visite un sitio malicioso mientras ejecuta MockServer localmente, será capaz de ejecutar código arbitrario en la máquina MockServer. Con una configuración CORS demasiado amplia por defecto, MockServer permite que cualquier sitio envíe peticiones de tipo cross-site. Además, MockServer permite crear expectativas dinámicas usando plantillas Javascript o Velocity. Ambos motores pueden permitir a un atacante ejecutar código arbitrario en MockServer. Al Combinar estos dos problemas (configuración de CORS demasiado amplia + inyección de scripts), un atacante podría servir una página maliciosa de forma que si un desarrollador que ejecuta MockServer la visita, se verá comprometido. Para más detalles, incluyendo un PoC, consulte el referido GHSL-2021-059.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
Attack Vector
Network
Attack Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2021-05-12 CVE Reserved
  • 2021-08-16 CVE Published
  • 2024-07-22 EPSS Updated
  • 2024-08-03 CVE Updated
  • 2024-08-03 First Exploit
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Mock-server
Search vendor "Mock-server"
Mockserver
Search vendor "Mock-server" for product "Mockserver"
*-
Affected
Oracle
Search vendor "Oracle"
Communications Cloud Native Core Policy
Search vendor "Oracle" for product "Communications Cloud Native Core Policy"
1.14.0
Search vendor "Oracle" for product "Communications Cloud Native Core Policy" and version "1.14.0"
-
Affected