HexBrain

Browse / CVEs / CVE-2020-9274

CVE-2020-9274· pureftpd / pure-ftpd· CWE-824

Pure-FTPd ≤ 1.0.49 - DoS via Uninitialized Pointer

highseverity
7.5CVSS score
6%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

Pure-FTPd versions ≤ 1.0.49 (>= ~0.96) contain a vulnerability in the init_aliases() function within diraliases.c when processing aliases. This leads to access of an uninitialized pointer, which can cause a denial of service (DoS) condition.

Impact

Attackers can trigger denial of service by exploiting an uninitialized pointer in the init_aliases() function when processing FTP aliases, causing the Pure-FTPd daemon to crash and disrupting FTP services.

Fix

Upgrade to Pure-FTPd version 1.0.50 or later that fixes the uninitialized pointer vulnerability in the diraliases.c file.

How to confirm it

Send: tcp probe to {{Hostname}}
Positive when: contains(raw, 'Pure-FTPd') and compare_versions(version, '<= 1.0.49')

Run it with nuclei: nuclei -id CVE-2020-9274 -u <target>

The full check
id: CVE-2020-9274

info:
  name: Pure-FTPd ≤ 1.0.49 - DoS via Uninitialized Pointer
  author: pussycat0x
  severity: high
  description: |
    Pure-FTPd versions ≤ 1.0.49 (>= ~0.96) contain a vulnerability in the init_aliases() function within diraliases.c when processing aliases. This leads to access of an uninitialized pointer, which can cause a denial of service (DoS) condition.
  impact: |
    Attackers can trigger denial of service by exploiting an uninitialized pointer in the init_aliases() function when processing FTP aliases, causing the Pure-FTPd daemon to crash and disrupting FTP services.
  remediation: |
    Upgrade to Pure-FTPd version 1.0.50 or later that fixes the uninitialized pointer vulnerability in the diraliases.c file.
  reference:
    - https://lists.debian.org/debian-lts-announce/2020/02/msg00029.html
    - https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22P44PECZWNDP7CMBL7NRBMNFS73C5Z2/
    - https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5NSUDWXZVWUCL6R2PTX3KBB42Z62CA5/
    - https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U5DBVHJCXWRSJPNJQCJQCKZF6ZDPZCKA/
    - https://security.gentoo.org/glsa/202003-54
  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-2020-9274
    cwe-id: CWE-824
    epss-score: 0.06006
    epss-percentile: 0.9339
    cpe: cpe:2.3:a:pureftpd:pure-ftpd:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: pureftpd
    product: pure-ftpd
    shodan-query:
      - product:"pure-ftpd" version:"1.0.49"
      - cpe:"cpe:2.3:a:pureftpd:pure-ftpd"
  tags: cve,cve2020,network,ftp,pure-ftpd,tcp,passive,vuln

tcp:
  - inputs:
      - data: 00000000
        type: hex

    host:
      - "{{Hostname}}"

    port: 21
    read-size: 1024

    matchers:
      - type: dsl
        dsl:
          - "contains(raw, 'Pure-FTPd')"
          - "compare_versions(version, '<= 1.0.49')"
        condition: and

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "Pure-FTPd ([0-9.]+)"

References

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