ghsa-wv28-7fpw-fj49
Vulnerability from github
Published
2024-03-27 06:30
Modified
2024-08-06 18:51
Summary
Lektor does not sanitize database path traversal
Details

Lektor before 3.3.11 does not sanitize DB path traversal. Thus, shell commands might be executed via a file that is added to the templates directory, if the victim's web browser accesses an untrusted website that uses JavaScript to send requests to localhost port 5000, and the web browser is running on the same machine as the "lektor server" command.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "Lektor"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.3.11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "Lektor"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.4.0b1"
            },
            {
              "fixed": "3.4.0b11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-28335"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-27T21:59:55Z",
    "nvd_published_at": "2024-03-27T06:15:19Z",
    "severity": "CRITICAL"
  },
  "details": "Lektor before 3.3.11 does not sanitize DB path traversal. Thus, shell commands might be executed via a file that is added to the templates directory, if the victim\u0027s web browser accesses an untrusted website that uses JavaScript to send requests to localhost port 5000, and the web browser is running on the same machine as the \"lektor server\" command.",
  "id": "GHSA-wv28-7fpw-fj49",
  "modified": "2024-08-06T18:51:02Z",
  "published": "2024-03-27T06:30:33Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-28335"
    },
    {
      "type": "WEB",
      "url": "https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800"
    },
    {
      "type": "WEB",
      "url": "https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0"
    },
    {
      "type": "WEB",
      "url": "https://brave.com/privacy-updates/27-localhost-permission"
    },
    {
      "type": "WEB",
      "url": "https://cxsecurity.com/issue/WLB-2024030043"
    },
    {
      "type": "WEB",
      "url": "https://getlektor.com/docs/quickstart"
    },
    {
      "type": "WEB",
      "url": "https://github.com/lektor/lektor/releases/tag/v3.3.11"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml"
    },
    {
      "type": "WEB",
      "url": "https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Lektor does not sanitize database path traversal"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...

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.