HexBrain

Browse / CVEs / CVE-2011-0762

CVE-2011-0762· vsftpd project / vsftpd· CWE-400

vsftpd < 2.3.3 - DoS

mediumseverity
4CVSS score
73.9%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

The vsf_filename_passes_filter function in ls.c in vsftpd before 2.3.3 allows remote authenticated users to cause a denial of service (CPU consumption and process slot exhaustion) via crafted glob expressions in STAT commands in multiple FTP sessions, a different vulnerability than CVE-2010-2632.

Impact

Authenticated attackers can send crafted glob expressions in STAT commands across multiple FTP sessions to cause CPU consumption and process slot exhaustion, leading to denial of service on vsftpd servers.

Fix

Update vsftpd to version 2.3.3 or later that properly handles glob expressions in STAT commands and prevents resource exhaustion attacks.

How to confirm it

Send: tcp probe to {{Hostname}}
Positive when: contains(raw, 'vsFTPd') and compare_versions(version, '< 2.3.3')

Run it with nuclei: nuclei -id CVE-2011-0762 -u <target>

The full check
id: CVE-2011-0762

info:
  name: vsftpd < 2.3.3 - DoS
  author: pussycat0x
  severity: medium
  description: |
    The vsf_filename_passes_filter function in ls.c in vsftpd before 2.3.3 allows remote authenticated users to cause a denial of service (CPU consumption and process slot exhaustion) via crafted glob expressions in STAT commands in multiple FTP sessions, a different vulnerability than CVE-2010-2632.
  impact: |
    Authenticated attackers can send crafted glob expressions in STAT commands across multiple FTP sessions to cause CPU consumption and process slot exhaustion, leading to denial of service on vsftpd servers.
  remediation: |
    Update vsftpd to version 2.3.3 or later that properly handles glob expressions in STAT commands and prevents resource exhaustion attacks.
  reference:
    - ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.3.4/Changelog
    - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622741
    - http://cxib.net/stuff/vspoc232.c
    - http://jvn.jp/en/jp/JVN37417423/index.html
    - http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055881.html
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:S/C:N/I:N/A:P
    cvss-score: 4
    cve-id: CVE-2011-0762
    cwe-id: CWE-400
    epss-score: 0.73946
    epss-percentile: 0.99482
    cpe: cpe:2.3:a:vsftpd_project:vsftpd:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: vsftpd_project
    product: vsftpd
    shodan-query:
      - vsftpd
      - product:"vsftpd"
  tags: cve,cve2011,network,ftp,vsftpd,tcp,passive,vuln

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

    host:
      - "{{Hostname}}"

    port: 21
    read-size: 1024

    matchers:
      - type: dsl
        dsl:
          - "contains(raw, 'vsFTPd')"
          - "compare_versions(version, '< 2.3.3')"
        condition: and

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

References

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