Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| mockoon | mockoon | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mockoon | Mockoon |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rqx4-3f6q-3x2v | @Mockoon/commons-server: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.262% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mockoon
Mockoon mockoon |
|
| Vendors & Products |
Mockoon
Mockoon mockoon |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Mockoon provides way to design and run mock APIs. Prior to 9.7.0, Mockoon's admin API in commons-server/src/libs/server/admin-api.ts is mounted on the same Express listener as user-defined mock routes, enabled by default in shipped runtimes, serves Access-Control-Allow-Origin: * with write methods allowed, and has no authentication. Any unauthenticated caller who can reach the mock server port can read MOCKOON_* environment variables, write arbitrary process environment variables through /mockoon-admin/env-vars, rewrite mock route bodies, statuses, and headers through PUT /mockoon-admin/environment, read transaction logs and SSE streams, and purge state. This issue is fixed in version 9.7.0. | |
| Title | Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft | |
| Weaknesses | CWE-306 CWE-352 CWE-732 CWE-942 |
|
| References |
| |
| Metrics |
cvssV3_1
|