Browse / CVEs / CVE-2018-17422
CVE-2018-17422· dotcms / dotcms· CWE-601
DotCMS < 5.0.2 - Open Redirect
dotCMS before 5.0.2 contains multiple open redirect vulnerabilities via the html/common/forward_js.jsp FORWARD_URL parameter or the html/portlet/ext/common/page_preview_popup.jsp hostname parameter. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
Impact
An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the installation of malware.
Fix
Upgrade to a version of DotCMS that is higher than 5.0.2 to mitigate the open redirect vulnerability.
How to confirm it
Send: GET {{BaseURL}}/html/common/forward_js.jsp?FORWARD_URL=http://oast.me ; GET {{BaseURL}}/html/portlet/ext/common/page_preview_popup.jsp?hostname=oast.me
Positive when: contains "self.location = 'http://oast.me'" or "location.href = 'http\\x3a\\x2f\\x2fwww\\x2eoast\\x2eme'"Run it with nuclei: nuclei -id CVE-2018-17422 -u <target>
The full check
id: CVE-2018-17422
info:
name: DotCMS < 5.0.2 - Open Redirect
author: 0x_Akoko,daffainfo
severity: medium
description: |
dotCMS before 5.0.2 contains multiple open redirect vulnerabilities via the html/common/forward_js.jsp FORWARD_URL parameter or the html/portlet/ext/common/page_preview_popup.jsp hostname parameter. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
impact: |
An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the installation of malware.
remediation: |
Upgrade to a version of DotCMS that is higher than 5.0.2 to mitigate the open redirect vulnerability.
reference:
- https://github.com/dotCMS/core/issues/15286
- https://nvd.nist.gov/vuln/detail/CVE-2018-17422
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2018-17422
cwe-id: CWE-601
epss-score: 0.03717
epss-percentile: 0.89873
cpe: cpe:2.3:a:dotcms:dotcms:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: dotcms
product: dotcms
shodan-query:
- http.title:"dotCMS"
- http.title:"dotcms"
fofa-query: title="dotcms"
google-query: intitle:"dotcms"
tags: cve2018,cve,redirect,dotcms,vuln
http:
- method: GET
path:
- '{{BaseURL}}/html/common/forward_js.jsp?FORWARD_URL=http://oast.me'
- '{{BaseURL}}/html/portlet/ext/common/page_preview_popup.jsp?hostname=oast.me'
stop-at-first-match: true
matchers:
- type: word
part: body
words:
- "self.location = 'http://oast.me'"
- "location.href = 'http\\x3a\\x2f\\x2fwww\\x2eoast\\x2eme'"References
- https://github.com/dotCMS/core/issues/15286
- https://nvd.nist.gov/vuln/detail/CVE-2018-17422
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from