CVE-2023-28109: Github.com/play with docker/play with docker Authorization Bypass Through User-Controlled Key Vulnerability

MODERATE
Advisory Identifier: GHSA-vq59-5x26-h639
CVSS 6.5
CWE-639
Published
Advisory Summary

CVE-2023-28109 is a MODERATE (CVSS 6.5) authorization bypass through user-controlled key vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Github.com/play with docker/play with docker libraries in the Go ecosystem. The issue involves authorization bypass through user-controlled key play-with-docker. Remediation is available in the latest vendor maintenance releases.

CVE-2023-28109 at a Glance

CVE Identifier CVE-2023-28109
GHSA Identifier GHSA-vq59-5x26-h639
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Github.com/play with docker/play with docker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-28109

To remediate this vulnerability, upgrade all affected Github.com/play with docker/play with docker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/play-with-docker/play-with-docker fixed: Latest secure release
Upgrade github.com/play-with-docker/play-with-docker to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/play-with-docker/play-with-docker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-28109, inspect your project dependencies for Github.com/play with docker/play with docker:

inspect dependencies for github.com/play-with-docker/play-with-docker

Analyze the terminal output to locate any version of Github.com/play with docker/play with docker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Github.com/play with docker/play with docker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Impact Give that CORS configuration was not correct, an attacker could use [play-with-docker.com](http://play-with-docker.com/) as an example, set origin header in http request as [evil-play-with-docker.com](http://evil-play-with-docker.com/), it will be echo in response header, which successfully bypass the CORS policy and retrieves basic user information. Patches It has been fixed in lastest version, Please upgrade to latest version Workarounds No, users have to upgrade version.

CVE-2023-28109 Affected Github.com/play with docker/play with docker Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/play-with-docker/play-with-docker
Go
≤ 0.0.2

References

Frequently Asked Questions

What is CVE-2023-28109?
CVE-2023-28109 is a security vulnerability in Github.com/play with docker/play with docker involving Authorization Bypass Through User-Controlled Key play-with-docker under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Github.com/play with docker/play with docker versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/play-with-docker/play-with-docker.
What version fixes CVE-2023-28109?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/play-with-docker/play-with-docker affected?
Yes, github.com/play-with-docker/play-with-docker is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-28109?
CVE-2023-28109 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-28109?
CVE-2023-28109 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Go dependencies for CVE-2023-28109?
Run the dependency tree command: 'inspect dependencies for github.com/play-with-docker/play-with-docker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vq59-5x26-h639",
  "modified" : "2023-03-17T14:43:12Z",
  "published" : "2023-03-17T14:43:12Z",
  "aliases" : [ "CVE-2023-28109" ],
  "summary" : "Authorization Bypass Through User-Controlled Key play-with-docker",
  "details" : "Impact\nGive that CORS configuration was not correct, an attacker could use [play-with-docker.com](http://play-with-docker.com/) as an example, set origin header in http request as  [evil-play-with-docker.com](http://evil-play-with-docker.com/), it will be echo in response header, which successfully bypass the CORS policy and retrieves basic user information.\n\nPatches\nIt has been fixed in lastest version, Please upgrade to latest version\n\nWorkarounds\nNo, users have to upgrade version.\n\n\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/play-with-docker/play-with-docker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/play-with-docker/play-with-docker/security/advisories/GHSA-vq59-5x26-h639"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-28109"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/play-with-docker/play-with-docker/commit/ed82247c9ab7990ad76ec2bf1498c2b2830b6f1a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/play-with-docker/play-with-docker"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-17T14:43:12Z",
    "nvd_published_at" : "2023-03-16T17:15:00Z"
  }
}