ID

VAR-201810-0456


CVE

CVE-2018-17533


TITLE

Teltonika RUT9XX Router firmware cross-site scripting vulnerability

Trust: 0.8

sources: JVNDB: JVNDB-2018-011053

DESCRIPTION

Teltonika RUT9XX routers with firmware before 00.05.01.1 are prone to cross-site scripting vulnerabilities in hotspotlogin.cgi due to insufficient user input sanitization. TeltonikaRUT9XXrouters (also known as LuCI) is a router product from Teltonika, Lithuania. * **Identifier** : SBA-ADV-20180410-01 * **Type of Vulnerability** : Cross Site Scripting * **Software/Product Name** : [Teltonika RUT955](https://teltonika.lt/product/rut955/) * **Vendor** : [Teltonika](https://teltonika.lt/) * **Affected Versions** : Firmware RUT9XX_R_00.05.00.5 and probably prior * **Fixed in Version** : RUT9XX_R_00.05.01.1 * **CVE ID** : CVE-2018-17533 * **CVSSv3 Vector** : CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N * **CVSSv3 Base Score** : 8.2 (High) ## Vendor Description ## > RUT955 is a highly reliable and secure LTE router with I/O, GNSS and > RS232/RS485 for professional applications. Router delivers high > performance, mission-critical cellular communication and GPS location > capabilities. Source: <https://teltonika.lt/product/rut955/> ## Impact ## By exploiting the documented vulnerabilities, an attacker can execute JavaScript code in a user's browser within the origin of the router. The attacker might take over existing or future administrative web management sessions and gain access to the device. We recommend upgrading to version RUT9XX_R_00.05.01.1 or newer, which includes fixes for the vulnerabilities described in this advisory. The scripts are part of the coova-chilli captive portal. However, in firmware versions before RUT9XX_R_00.04.233 the vulnerabilities are exploitable regardless of the device configuration, even if no captive portal is configured. More concretely, the following parameters are vulnerable: * `/cgi-bin/hotspotlogin.cgi` * *If* res=failed or res=notyet * challenge * uamip * uamport * userurl The affected script outputs these input parameters in an HTML context without proper output encoding. The vulnerabilities are located in `hotspotlogin.cgi`: ```lua [...] elseif result == 2 or result == 5 then replace_tags.formHeader = [[<form name="myForm" method="post" action="]] .. loginpath .. [["> <INPUT TYPE="hidden" NAME="challenge" VALUE="]] .. challenge .. [["> <INPUT TYPE="hidden" NAME="]] .. names["uamip"] .. [[" VALUE="]] .. uamip .. [["> <INPUT TYPE="hidden" NAME="]] .. names["uamport"] .. [[" VALUE="]] .. uamport .. [["> <INPUT TYPE="hidden" NAME="]] .. names["userurl"] .. [[" VALUE="]] ..userurldecode .. [["> <INPUT TYPE="hidden" NAME="res" VALUE="]] .. res .. [[">]] replace_tags.formFooter = [[</form>]] [...] ``` As the above code snippet shows, the parameter `userurl` contains user input and is output without performing any HTML escaping. ## Proof-of-Concept ## An attacker can exploit this vulnerability by manipulating the `userurl` query parameter: ```text http://<IP>/cgi-bin/hotspotlogin.cgi?res=failed&userurl="><script>alert(1)</script><span ``` An attacker can exploit the other parameters (e.g. challenge) via POST requests: ```html <form action="http://<IP>/cgi-bin/hotspotlogin.cgi" method="post" enctype="text/plain"> <input type="hidden" name="res" value="failed&challenge=&quot;><script>alert(1)</script><span&quot;"> <input type="submit" value="challenge"> </form> ``` ## Timeline ## * `2018-04-10` identification of vulnerability in version RUT9XX_R_00.04.161 * `2018-04-16` re-test of version RUT9XX_R_00.04.172 * `2018-04-16` initial vendor contact through public address * `2018-04-18` vendor response with security contact * `2018-04-19` disclosed vulnerability to vendor security contact * `2018-04-26` vendor released fix in version RUT9XX_R_00.04.233 * `2018-07-09` notify vendor about incomplete fix in version RUT9XX_R_00.05.00.5 * `2018-07-19` vendor released fix in version RUT9XX_R_00.05.01.1 * `2018-07-25` re-test of version RUT9XX_R_00.05.01.2 * `2018-09-25` request CVE from MITRE * `2018-09-26` MITRE assigned CVE-2018-17533 * `2018-10-11` public disclosure ## References ## * Firmware Changelog: <https://wiki.teltonika.lt/index.php?title=RUT9xx_Firmware> ## Credits ## * David Gnedt ([SBA Research](https://www.sba-research.org/))

Trust: 2.25

sources: NVD: CVE-2018-17533 // JVNDB: JVNDB-2018-011053 // CNVD: CNVD-2019-18495 // PACKETSTORM: 149781

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2019-18495

AFFECTED PRODUCTS

vendor:teltonikamodel:rut900scope:ltversion:00.05.01.1

Trust: 1.8

vendor:teltonikamodel:rut950scope:ltversion:00.05.01.1

Trust: 1.8

vendor:teltonikamodel:rut955scope:ltversion:00.05.01.1

Trust: 1.8

vendor:teltonikamodel:rut9xxscope:ltversion:00.05.01.1

Trust: 0.6

sources: CNVD: CNVD-2019-18495 // JVNDB: JVNDB-2018-011053 // NVD: CVE-2018-17533

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2018-17533
value: MEDIUM

Trust: 1.0

NVD: CVE-2018-17533
value: MEDIUM

Trust: 0.8

CNVD: CNVD-2019-18495
value: MEDIUM

Trust: 0.6

CNNVD: CNNVD-201810-711
value: MEDIUM

Trust: 0.6

nvd@nist.gov: CVE-2018-17533
severity: MEDIUM
baseScore: 4.3
vectorString: AV:N/AC:M/AU:N/C:N/I:P/A:N
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: NONE
integrityImpact: PARTIAL
availabilityImpact: NONE
exploitabilityScore: 8.6
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

CNVD: CNVD-2019-18495
severity: MEDIUM
baseScore: 4.3
vectorString: AV:N/AC:M/AU:N/C:N/I:P/A:N
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: NONE
integrityImpact: PARTIAL
availabilityImpact: NONE
exploitabilityScore: 8.6
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

nvd@nist.gov: CVE-2018-17533
baseSeverity: MEDIUM
baseScore: 6.1
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: REQUIRED
scope: CHANGED
confidentialityImpact: LOW
integrityImpact: LOW
availabilityImpact: NONE
exploitabilityScore: 2.8
impactScore: 2.7
version: 3.0

Trust: 1.8

sources: CNVD: CNVD-2019-18495 // JVNDB: JVNDB-2018-011053 // CNNVD: CNNVD-201810-711 // NVD: CVE-2018-17533

PROBLEMTYPE DATA

problemtype:CWE-79

Trust: 1.8

sources: JVNDB: JVNDB-2018-011053 // NVD: CVE-2018-17533

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201810-711

TYPE

xss

Trust: 0.7

sources: PACKETSTORM: 149781 // CNNVD: CNNVD-201810-711

CONFIGURATIONS

sources: JVNDB: JVNDB-2018-011053

PATCH

title:Top Pageurl:http://teltonika.lt/

Trust: 0.8

title:Patch for TeltonikaRUT9XX Cross-Site Scripting Vulnerabilityurl:https://www.cnvd.org.cn/patchInfo/show/163897

Trust: 0.6

title:Teltonika RUT9XX Repair measures for router cross-site scripting vulnerabilitiesurl:http://www.cnnvd.org.cn/web/xxk/bdxqById.tag?id=85808

Trust: 0.6

sources: CNVD: CNVD-2019-18495 // JVNDB: JVNDB-2018-011053 // CNNVD: CNNVD-201810-711

EXTERNAL IDS

db:NVDid:CVE-2018-17533

Trust: 3.1

db:PACKETSTORMid:149781

Trust: 2.5

db:JVNDBid:JVNDB-2018-011053

Trust: 0.8

db:EXPLOITALERTid:31168

Trust: 0.6

db:CNVDid:CNVD-2019-18495

Trust: 0.6

db:CNNVDid:CNNVD-201810-711

Trust: 0.6

sources: CNVD: CNVD-2019-18495 // JVNDB: JVNDB-2018-011053 // PACKETSTORM: 149781 // CNNVD: CNNVD-201810-711 // NVD: CVE-2018-17533

REFERENCES

url:http://packetstormsecurity.com/files/149781/teltonika-rut9xx-reflected-cross-site-scripting.html

Trust: 2.4

url:https://github.com/sbaresearch/advisories/tree/public/2018/sba-adv-20180410-01_teltonika_cross_site_scripting

Trust: 1.7

url:http://seclists.org/fulldisclosure/2018/oct/29

Trust: 1.6

url:https://nvd.nist.gov/vuln/detail/cve-2018-17533

Trust: 1.5

url:https://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2018-17533

Trust: 0.8

url:https://www.exploitalert.com/view-details.html?id=31168

Trust: 0.6

url:https://teltonika.lt/)

Trust: 0.1

url:http://<ip>/cgi-bin/hotspotlogin.cgi?res=failed&userurl="><script>alert(1)</script><span

Trust: 0.1

url:https://teltonika.lt/product/rut955/)

Trust: 0.1

url:http://<ip>/cgi-bin/hotspotlogin.cgi"

Trust: 0.1

url:https://teltonika.lt/product/rut955/>

Trust: 0.1

url:https://wiki.teltonika.lt/index.php?title=rut9xx_firmware>

Trust: 0.1

url:https://www.sba-research.org/))

Trust: 0.1

sources: CNVD: CNVD-2019-18495 // JVNDB: JVNDB-2018-011053 // PACKETSTORM: 149781 // CNNVD: CNNVD-201810-711 // NVD: CVE-2018-17533

CREDITS

David Gnedt

Trust: 0.1

sources: PACKETSTORM: 149781

SOURCES

db:CNVDid:CNVD-2019-18495
db:JVNDBid:JVNDB-2018-011053
db:PACKETSTORMid:149781
db:CNNVDid:CNNVD-201810-711
db:NVDid:CVE-2018-17533

LAST UPDATE DATE

2024-11-23T22:30:16.751000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2019-18495date:2019-06-19T00:00:00
db:JVNDBid:JVNDB-2018-011053date:2019-01-04T00:00:00
db:CNNVDid:CNNVD-201810-711date:2018-10-16T00:00:00
db:NVDid:CVE-2018-17533date:2024-11-21T03:54:33.783

SOURCES RELEASE DATE

db:CNVDid:CNVD-2019-18495date:2019-06-19T00:00:00
db:JVNDBid:JVNDB-2018-011053date:2019-01-04T00:00:00
db:PACKETSTORMid:149781date:2018-10-12T16:22:13
db:CNNVDid:CNNVD-201810-711date:2018-10-16T00:00:00
db:NVDid:CVE-2018-17533date:2018-10-15T19:29:01.837