id: CVE-2021-33558

info:
  name: Boa 0.94.13 - Information Disclosure
  author: DhiyaneshDK
  severity: high
  description: |
    Boa 0.94.13 allows remote attackers to obtain sensitive information via a misconfiguration involving backup.html, preview.html, js/log.js, log.html, email.html, online-users.html, and config.js. NOTE- multiple third parties report that this is a site-specific issue because those files are not part of Boa.
  impact: |
    Unauthenticated attackers can access sensitive JavaScript files exposing logging functionality and potentially other configuration details.
  remediation: |
    Update Boa web server to a version newer than 0.94.13 or apply vendor security patches.
  reference:
    - https://sourceforge.net/projects/boa/files/boa/0.94.13/
    - https://github.com/anldori/CVE-2021-33558
  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-2021-33558
    epss-score: 0.12307
    epss-percentile: 0.95781
    cpe: cpe:2.3:a:boa:boa:0.94.13:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: boa
    product: boa
    shodan-query: 'Server: Boa/0.94.13'
    fofa-query: "Server: Boa/0.94.13"
  tags: cve,cve2021,boa,info-leak,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/js/log.js"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "function SearchLog"
          - "logTime"
        condition: and
        case-insensitive: true

      - type: status
        status:
          - 200
# digest: 490a0046304402206f6a7356c2f5be6ed5af782f58068aa2b8e313ad2f56dba5c968f4decfb6a5150220342e58f8c75066d771802ad3e9d99fa6f3b5d7ce7e3d4e5151ccac28a0445bd3:922c64590222798bb761d5b6d8e72950