CVE-2021-32827
CVSS V2 Medium 6.8
CVSS V3 Critical 9.6
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.
Overview
- CVE ID
- CVE-2021-32827
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-08-16T21:15:08
- Last Modified Date
- 2022-07-02T18:21:03
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:mock-server:mockserver:*:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 6.8
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 9.6
- Base Severity
- CRITICAL
- Exploitability Score
- 2.8
- Impact Score
- 6
References
Reference URL | Reference Tags |
---|---|
https://securitylab.github.com/advisories/GHSL-2021-059-mockserver/ | Exploit Third Party Advisory |
https://www.oracle.com/security-alerts/cpujan2022.html | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-32827 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32827 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 15:48:39 | Added to TrackCVE | |||
2022-12-05 08:21:46 | 2021-08-16T21:15Z | 2021-08-16T21:15:08 | CVE Published Date | updated |
2022-12-05 08:21:46 | 2022-07-02T18:21:03 | CVE Modified Date | updated | |
2022-12-05 08:21:46 | Analyzed | Vulnerability Status | updated |