CVE-2021-32827
Arbitrary code execution in MockServer
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
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.
CVSS Scores
SSVC
- Decision:-
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
References (2)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://securitylab.github.com/advisories/GHSL-2021-059-mockserver | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://www.oracle.com/security-alerts/cpujan2022.html | 2022-07-02 |
URL | Date | SRC |
---|
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
|