id: CVE-2015-1419

info:
  name: vsftpd <= 3.0.2 - Access Restriction Bypass
  author: pussycat0x
  severity: medium
  description: |
    vsftpd 3.0.2 and earlier contain a vulnerability that allows remote attackers to bypass access restrictions due to improper parsing of the deny_file configuration directive.
  impact: |
    Unauthenticated attackers can bypass access restrictions configured via the deny_file directive to access files that should be restricted, potentially exposing sensitive data on vsftpd servers.
  remediation: |
    Update vsftpd to a version newer than 3.0.2 that properly parses and enforces the deny_file configuration directive to prevent access restriction bypass.
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:N/I:P/A:N
    cvss-score: 5
    cve-id: CVE-2015-1419
    epss-score: 0.06725
    epss-percentile: 0.93265
    cpe: cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: opensuse
    product: opensuse
    shodan-query: "vsFTPd"
  tags: cve,cve2015,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, '<= 3.0.2')"
        condition: and

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "vsFTPd ([0-9.]+)"
# digest: 490a00463044022059a165ac62c21457fe4d36684c24824cc937c40b519c93c0c780d147ff6738d70220717374e6c9bf783c372192e84519d2d19084f483bce16821df372fdae9921837:922c64590222798bb761d5b6d8e72950