ghsa-v3cg-h3f6-2242
Vulnerability from github
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.
{ "affected": [ { "package": { "ecosystem": "Maven", "name": "org.mock-server:mockserver" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "5.11.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2021-32827" ], "database_specific": { "cwe_ids": [ "CWE-74", "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2021-08-26T19:35:37Z", "nvd_published_at": "2021-08-16T21:15:00Z", "severity": "MODERATE" }, "details": "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.", "id": "GHSA-v3cg-h3f6-2242", "modified": "2022-02-08T21:01:17Z", "published": "2021-08-30T16:24:38Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32827" }, { "type": "PACKAGE", "url": "https://github.com/mock-server/mockserver" }, { "type": "ADVISORY", "url": "https://securitylab.github.com/advisories/GHSL-2021-059-mockserver" }, { "type": "WEB", "url": "https://www.oracle.com/security-alerts/cpujan2022.html" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N", "type": "CVSS_V3" } ], "summary": "Injection in MockServer" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.