GSD-2022-31259

Vulnerability from gsd - Updated: 2023-12-13 01:19
Details
The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2022-31259",
    "description": "The route lookup process in beego through 1.12.4 and 2.x through 2.0.2 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).",
    "id": "GSD-2022-31259"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2022-31259"
      ],
      "details": "The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).",
      "id": "GSD-2022-31259",
      "modified": "2023-12-13T01:19:17.589463Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2022-31259",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1)."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/beego/beego/issues/4946",
            "refsource": "MISC",
            "url": "https://github.com/beego/beego/issues/4946"
          },
          {
            "name": "https://beego.vip",
            "refsource": "MISC",
            "url": "https://beego.vip"
          },
          {
            "name": "https://github.com/beego/beego/tree/v2.0.2",
            "refsource": "MISC",
            "url": "https://github.com/beego/beego/tree/v2.0.2"
          },
          {
            "name": "https://github.com/advisories/GHSA-qx32-f6g6-fcfr",
            "refsource": "MISC",
            "url": "https://github.com/advisories/GHSA-qx32-f6g6-fcfr"
          }
        ]
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c=v1.12.4 || \u003e=v2.0.0 \u003c=v2.0.2",
          "affected_versions": "All versions up to 1.12.4, all versions starting from 2.0.0 up to 2.0.2",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2023-02-17",
          "description": "The route lookup process in beego through 1.12.4 and 2.x through 2.0.2 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).",
          "fixed_versions": [],
          "identifier": "CVE-2022-31259",
          "identifiers": [
            "CVE-2022-31259",
            "GHSA-qx32-f6g6-fcfr"
          ],
          "not_impacted": "",
          "package_slug": "go/github.com/astaxie/beego/session",
          "pubdate": "2022-05-21",
          "solution": "Unfortunately, there is no solution available yet.",
          "title": "Authentication Bypass Using an Alternate Path or Channel",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-31259",
            "https://github.com/beego/beego/tree/v2.0.2",
            "https://beego.vip",
            "https://github.com/beego/beego/issues/4946"
          ],
          "uuid": "6512cc21-cff4-4ec7-ad02-a40a883885a1",
          "versions": [
            {
              "commit": {
                "sha": "fb12e1f743d67a4adbe4751cffbdd6113fde525f",
                "tags": [
                  "v2.0.0-beta"
                ],
                "timestamp": "20201107142355"
              },
              "number": "v2.0.0"
            }
          ]
        },
        {
          "affected_range": "\u003cv1.12.4",
          "affected_versions": "All versions before 1.12.4",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-05-25",
          "description": "The route lookup process in beego through 1.12.4 and 2.x through 2.0.2 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).",
          "fixed_versions": [
            "v1.12.4"
          ],
          "identifier": "CVE-2022-31259",
          "identifiers": [
            "GHSA-qx32-f6g6-fcfr",
            "CVE-2022-31259"
          ],
          "not_impacted": "All versions starting from 1.12.4",
          "package_slug": "go/github.com/beego/beego",
          "pubdate": "2022-05-22",
          "solution": "Upgrade to version 1.12.4 or above.",
          "title": "Access control bypass in beego",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-31259",
            "https://github.com/beego/beego/issues/4946",
            "https://github.com/beego/beego/tree/v2.0.2",
            "https://github.com/beego/beego/pull/4958",
            "https://github.com/advisories/GHSA-qx32-f6g6-fcfr"
          ],
          "uuid": "f507ca7d-12d7-4df8-a402-a78dc033a6c0",
          "versions": [
            {
              "commit": {
                "sha": "8524b624773d54c324ae7d389cbda63df2c706f9",
                "tags": [
                  "v1.12.4"
                ],
                "timestamp": "20220425041648"
              },
              "number": "v1.12.4"
            }
          ]
        },
        {
          "affected_range": "\u003e=v2.0.0 \u003cv2.0.2",
          "affected_versions": "All versions starting from 2.0.0 before 2.0.2",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-05-25",
          "description": "The route lookup process in beego through 1.12.4 and 2.x through 2.0.2 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).",
          "fixed_versions": [
            "v2.0.2"
          ],
          "identifier": "CVE-2022-31259",
          "identifiers": [
            "GHSA-qx32-f6g6-fcfr",
            "CVE-2022-31259"
          ],
          "not_impacted": "All versions before 2.0.0, all versions starting from 2.0.2",
          "package_slug": "go/github.com/beego/beego/v2",
          "pubdate": "2022-05-22",
          "solution": "Upgrade to version 2.0.2 or above.",
          "title": "Access control bypass in beego",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-31259",
            "https://github.com/beego/beego/issues/4946",
            "https://github.com/beego/beego/tree/v2.0.2",
            "https://github.com/beego/beego/pull/4958",
            "https://github.com/advisories/GHSA-qx32-f6g6-fcfr"
          ],
          "uuid": "a8d2f1bc-396c-469f-a771-d2e5d8f0a805",
          "versions": [
            {
              "commit": {
                "sha": "a1b1248a67b3f252639ed5a60d143675cae10cb7",
                "tags": [
                  "v2.0.0"
                ],
                "timestamp": "20201214062818"
              },
              "number": "v2.0.0"
            },
            {
              "commit": {
                "sha": "6255e55fed855675fd73e05ca7c0fd0465e2757c",
                "tags": [
                  "v2.0.2"
                ],
                "timestamp": "20220109091704"
              },
              "number": "v2.0.2"
            }
          ]
        },
        {
          "affected_range": "\u003cv2.0.3",
          "affected_versions": "All versions before 2.0.3",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "description": "The route lookup process in beego through 1.12.4 and 2.x through 2.0.2 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).",
          "fixed_versions": [
            "v2.0.3"
          ],
          "identifier": "CVE-2022-31259",
          "identifiers": [
            "GHSA-qx32-f6g6-fcfr",
            "CVE-2022-31259"
          ],
          "not_impacted": "All versions starting from 2.0.3",
          "package_slug": "go/github.com/beego/beego/v2/server/web",
          "pubdate": "2022-05-22",
          "solution": "Upgrade to version 2.0.3 or above.",
          "title": "Access control bypass in beego",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-31259",
            "https://github.com/beego/beego/issues/4946",
            "https://github.com/beego/beego/tree/v2.0.2",
            "https://github.com/beego/beego/pull/4958",
            "https://beego.vip",
            "https://github.com/beego/beego/pull/4954",
            "https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009",
            "https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd",
            "https://pkg.go.dev/vuln/GO-2022-0463",
            "https://github.com/advisories/GHSA-qx32-f6g6-fcfr"
          ],
          "uuid": "adc07d71-75c5-4f4d-81b9-89ab8df8fc09",
          "versions": [
            {
              "commit": {
                "sha": "d828091699f2d97e505c709c653bc036a986cd27",
                "tags": [
                  "v2.0.3"
                ],
                "timestamp": "20220523133413"
              },
              "number": "v2.0.3"
            }
          ]
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndIncluding": "2.0.2",
                "versionStartIncluding": "2.0.0",
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndIncluding": "1.12.4",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2022-31259"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1)."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "NVD-CWE-noinfo"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/beego/beego/tree/v2.0.2",
              "refsource": "MISC",
              "tags": [
                "Release Notes",
                "Third Party Advisory"
              ],
              "url": "https://github.com/beego/beego/tree/v2.0.2"
            },
            {
              "name": "https://beego.vip",
              "refsource": "MISC",
              "tags": [
                "Product"
              ],
              "url": "https://beego.vip"
            },
            {
              "name": "https://github.com/beego/beego/issues/4946",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Issue Tracking",
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/beego/beego/issues/4946"
            },
            {
              "name": "https://github.com/advisories/GHSA-qx32-f6g6-fcfr",
              "refsource": "MISC",
              "tags": [],
              "url": "https://github.com/advisories/GHSA-qx32-f6g6-fcfr"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 6.8,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2023-02-17T17:15Z",
      "publishedDate": "2022-05-21T19:15Z"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…