GHSA-v3cg-h3f6-2242

Suggest an improvement
Source
https://github.com/advisories/GHSA-v3cg-h3f6-2242
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-v3cg-h3f6-2242/GHSA-v3cg-h3f6-2242.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v3cg-h3f6-2242
Aliases
  • CVE-2021-32827
Published
2021-08-30T16:24:38Z
Modified
2024-02-19T05:30:07.401397Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Injection in MockServer
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.

Database specific
{
    "nvd_published_at": "2021-08-16T21:15:00Z",
    "cwe_ids": [
        "CWE-74",
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-26T19:35:37Z"
}
References

Affected packages

Maven / org.mock-server:mockserver

Package

Name
org.mock-server:mockserver
View open source insights on deps.dev
Purl
pkg:maven/org.mock-server/mockserver

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
5.11.2

Affected versions

1.*

1.2
1.3
1.4
1.5
1.7
1.8
1.9
1.10
1.11
1.12

2.*

2.0
2.1
2.3
2.5
2.6
2.7
2.8
2.9
2.10

3.*

3.0
3.1
3.2
3.3
3.4
3.5
3.6
3.6.1
3.6.2
3.7
3.8
3.8.1
3.8.2
3.9
3.9.1
3.9.2
3.9.3
3.9.4
3.9.5
3.9.6
3.9.7
3.9.8
3.9.9
3.9.10
3.9.11
3.9.12
3.9.13
3.9.14
3.9.15
3.9.16
3.9.17
3.9.18
3.10.0
3.10.1
3.10.2
3.10.3
3.10.4
3.10.5
3.10.6
3.10.7
3.10.8
3.11
3.12

4.*

4.0.0
4.1.0

5.*

5.0.0
5.0.1
5.1.0
5.1.1
5.2.0
5.2.1
5.2.2
5.2.3
5.3.0
5.4.1
5.5.0
5.5.1
5.5.4
5.6.0
5.6.1
5.7.0
5.7.1
5.7.2
5.8.0
5.8.1
5.9.0
5.10
5.10.0
5.11.0
5.11.1
5.11.2