Vulnerabilities > CVE-2017-11357 - Improper Input Validation vulnerability in Telerik UI FOR Asp.Net Ajax
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
Progress Telerik UI for ASP.NET AJAX before R2 2017 SP2 does not properly restrict user input to RadAsyncUpload, which allows remote attackers to perform arbitrary file uploads or execute arbitrary code.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Exploit-Db
file | exploits/aspx/webapps/43874.py |
id | EDB-ID:43874 |
last seen | 2018-11-30 |
modified | 2018-01-24 |
platform | aspx |
port | |
published | 2018-01-24 |
reporter | Exploit-DB |
source | https://www.exploit-db.com/download/43874 |
title | Telerik UI for ASP.NET AJAX 2012.3.1308 < 2017.1.118 - Arbitrary File Upload |
type | webapps |
Nessus
NASL family Windows NASL id TELERIK_UI_FOR_ASPNET_AJAX_CVE-2017-11317.NASL description The version of Telerik UI for ASP.NET AJAX installed on the remote Windows host is affected by multiple vulnerabilities in Telerik.Web.UI.dll. An unauthenticated, remote attacker can exploit this, via specially crafted data, to execute arbitrary code. last seen 2020-05-23 modified 2018-03-02 plugin id 107096 published 2018-03-02 reporter This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/107096 title Telerik UI for ASP.NET AJAX RadAsyncUpload Multiple Vulnerabilities code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(107096); script_version("1.5"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/22"); script_cve_id("CVE-2017-11317", "CVE-2017-11357"); script_bugtraq_id(103171, 103173); script_xref(name:"IAVA", value:"2018-A-0066-S"); script_name(english:"Telerik UI for ASP.NET AJAX RadAsyncUpload Multiple Vulnerabilities"); script_summary(english:"Checks the version of Telerik.Web.UI.dll."); script_set_attribute(attribute:"synopsis", value: "A web application development suite installed on the remote Windows host is affected by multiple vulnerabilities."); script_set_attribute(attribute:"description", value: "The version of Telerik UI for ASP.NET AJAX installed on the remote Windows host is affected by multiple vulnerabilities in Telerik.Web.UI.dll. An unauthenticated, remote attacker can exploit this, via specially crafted data, to execute arbitrary code."); # https://www.telerik.com/support/kb/aspnet-ajax/upload-%28async%29/details/insecure-direct-object-reference script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?77b0e65f"); # https://www.telerik.com/support/kb/aspnet-ajax/upload-(async)/details/unrestricted-file-upload script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?49cbdec3"); script_set_attribute(attribute:"solution", value: "Upgrade to Telerik UI for ASP.NET AJAX version R2 2017 SP2 (2017.2.711) or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2017-11357"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"vuln_publication_date", value:"2017/08/22"); script_set_attribute(attribute:"patch_publication_date", value:"2017/08/15"); script_set_attribute(attribute:"plugin_publication_date", value:"2018/03/02"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:telerik:ui_for_asp.net_ajax"); script_set_attribute(attribute:"stig_severity", value:"I"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows"); script_copyright(english:"This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("telerik_ui_for_aspnet_ajax_installed.nbin"); script_require_keys("installed_sw/Telerik UI for ASP.NET AJAX"); script_require_ports(139, 445); exit(0); } include("audit.inc"); include("global_settings.inc"); include("misc_func.inc"); include("install_func.inc"); include("smb_func.inc"); include("smb_hotfixes.inc"); function display_dword (dword, nox) { local_var tmp; if (isnull(nox) || (nox == FALSE)) tmp = "0x"; else tmp = ""; return "" + tmp + toupper(hexstr(raw_string( (dword >>> 24) & 0xFF, (dword >>> 16) & 0xFF, (dword >>> 8) & 0xFF, dword & 0xFF ))); } app_name = "Telerik UI for ASP.NET AJAX"; has_a_patch = FALSE; install = get_single_install(app_name:app_name, exit_if_unknown_ver:TRUE); version = install['version']; path = install['path']; web_ui_dll = install['web_ui_dll']; # 2017.2.711 and later is patched if (ver_compare(ver:version, fix:"2017.2.711.0", strict:FALSE) >= 0) audit(AUDIT_INST_PATH_NOT_VULN, app_name, version, path); # 2011.1.315 to 2017.2.621 have patches + mitigations available if ((ver_compare(ver:version, fix:"2011.1.315.0", strict:FALSE) >= 0) && (ver_compare(ver:version, fix:"2017.2.621.9999", strict:FALSE) <= 0)) { # check for "Telerik.Web.UI.Patch" in the File Description # Connect to the appropriate share. port = kb_smb_transport(); login = kb_smb_login(); pass = kb_smb_password(); domain = kb_smb_domain(); if (!smb_session_init()) audit(AUDIT_FN_FAIL, "smb_session_init"); share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:web_ui_dll); dll = ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1", string:web_ui_dll); rc = NetUseAdd(login:login, password:pass, domain:domain, share:share); if (rc != 1) { NetUseDel(); audit(AUDIT_SHARE_FAIL, share); } fh = CreateFile( file:dll, desired_access:GENERIC_READ, file_attributes:FILE_ATTRIBUTE_NORMAL, share_mode:FILE_SHARE_READ, create_disposition:OPEN_EXISTING ); file_description = NULL; if (!isnull(fh)) { ret = GetFileVersionEx(handle:fh); if (!isnull(ret)) children = ret['Children']; if (!isnull(children)) { varfileinfo = children['VarFileInfo']; if (!isnull(varfileinfo)) { translation = (get_word (blob:varfileinfo['Translation'], pos:0) << 16) + get_word (blob:varfileinfo['Translation'], pos:2); translation = tolower(display_dword(dword:translation, nox:TRUE)); } stringfileinfo = children['StringFileInfo']; if (!isnull(stringfileinfo) && !isnull(translation)) { data = stringfileinfo[translation]; if (!isnull(data)) file_description = data['FileDescription']; else { data = stringfileinfo[toupper(translation)]; if (!isnull(data)) file_description = data['FileDescription']; } } } CloseFile(handle:fh); } NetUseDel(); if (empty_or_null(file_description)) exit(1, "Failed to get the file description of " + web_ui_dll + "."); if (file_description == "Telerik.Web.UI.Patch") has_a_patch = TRUE; } if (has_a_patch) { # if it has *a* patch, we can't be sure that it is the correct patch # and we also can't tell if they have applied the mitigations to go # with the patch, so if we're paranoid, we add a note to the report # (done below) and if we're not paranoid, we audit out if (report_paranoia < 2) audit(AUDIT_PARANOID); } port = get_kb_item("SMB/transport"); if (empty_or_null(port)) port = 445; report = report_items_str( report_items:make_array( "Path", path, "Installed version", version, "Fixed version", "2017.2.711.0 or vendor supplied patch" ), ordered_fields:make_list("Path", "Installed version", "Fixed version") ); if (has_a_patch) report += '\n\n' + "Although a patch has been applied, we aren't able to determine if this is the" + '\n' + "correct patch for these vulnerabilities. As per the vendor advisory, you must" + '\n' + "ensure that the patch you applied was downloaded after August 15th, 2017. You" + '\n' + "must also ensure the appropriate mitigations (disable file uploads or disable" + '\n' + "POST requests) have been applied as per the vendor advisory"; security_report_v4(port:port, severity:SECURITY_HOLE, extra:report);
NASL family Windows NASL id TELERIK_UI_FOR_ASPNET_AJAX_CVE-2019-18935.NASL description Progress Telerik UI for ASP.NET AJAX through 2019.3.1023 contains a .NET deserialization vulnerability in the RadAsyncUpload function. This is exploitable when the encryption keys are known due to the presence of CVE-2017-11317 or CVE-2017-11357, or other means. Exploitation can result in remote code execution. (As of 2020.1.114, a default setting prevents the exploit. In 2019.3.1023, but not earlier versions, a non-default setting can prevent exploitation.) last seen 2020-05-23 modified 2020-04-24 plugin id 135970 published 2020-04-24 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/135970 title Telerik UI for ASP.NET AJAX RadAsyncUpload .NET Deserialization Vulnerability code # # (C) Tenable Network Security, Inc. # include('compat.inc'); if (description) { script_id(135970); script_version("1.3"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/22"); script_cve_id("CVE-2019-18935"); script_xref(name:"IAVA", value:"2020-A-0219"); script_name(english:"Telerik UI for ASP.NET AJAX RadAsyncUpload .NET Deserialization Vulnerability"); script_set_attribute(attribute:"synopsis", value: "A web application development suite installed on the remote Windows host is affected by a deserialization vulnerability."); script_set_attribute(attribute:"description", value: "Progress Telerik UI for ASP.NET AJAX through 2019.3.1023 contains a .NET deserialization vulnerability in the RadAsyncUpload function. This is exploitable when the encryption keys are known due to the presence of CVE-2017-11317 or CVE-2017-11357, or other means. Exploitation can result in remote code execution. (As of 2020.1.114, a default setting prevents the exploit. In 2019.3.1023, but not earlier versions, a non-default setting can prevent exploitation.)"); # https://www.telerik.com/support/kb/aspnet-ajax/details/allows-javascriptserializer-deserialization script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?de2ce6ef"); # https://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/security?&_ga=2.224762457.29387225.1587722153-1707628900.1586272484#allowedcustommetadatatypes script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?be6fd178"); script_set_attribute(attribute:"solution", value: "Upgrade to Telerik UI for ASP.NET AJAX version R3 2019 SP1 (2019.3.1023) or later, and enable the type whitelisting feature of RadAsyncUpload."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-18935"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploited_by_malware", value:"true"); script_set_attribute(attribute:"vuln_publication_date", value:"2019/12/09"); script_set_attribute(attribute:"patch_publication_date", value:"2019/12/09"); script_set_attribute(attribute:"plugin_publication_date", value:"2020/04/24"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:telerik:ui_for_asp.net_ajax"); script_set_attribute(attribute:"stig_severity", value:"I"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows"); script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("telerik_ui_for_aspnet_ajax_installed.nbin"); script_require_keys("installed_sw/Telerik UI for ASP.NET AJAX"); script_require_ports(139, 445); exit(0); } include('install_func.inc'); include('smb_func.inc'); include('smb_hotfixes.inc'); app_name = 'Telerik UI for ASP.NET AJAX'; opt_in = FALSE; install = get_single_install(app_name:app_name, exit_if_unknown_ver:TRUE); version = install['version']; path = install['path']; # 2020.1.114 and later have default settings available if (ver_compare(ver:version, fix:'2020.1.114.0', strict:FALSE) >= 0) audit(AUDIT_INST_PATH_NOT_VULN, app_name, version, path); # 2019.3.1023 has opt-in settings available, but not by default if ((ver_compare(ver:version, fix:'2019.3.1023', strict:FALSE) >= 0) && (ver_compare(ver:version, fix:'2020.1.114.0', strict:FALSE) <= 0)) { opt_in = TRUE; } if (opt_in) { # if version is 2019.3.1023 or higher, but lower than 2020.1.114.0, # type whitelisting feature of RadAsyncUpload needs to be enabled manually. # so if we're paranoid, we add a note to the report # (done below) and if we're not paranoid, we audit out if (report_paranoia < 2) audit(AUDIT_PARANOID); } port = get_kb_item('SMB/transport'); if (empty_or_null(port)) port = 445; report = report_items_str( report_items:make_array( 'Path', path, 'Installed version', version, 'Fixed version', '2019.3.1023' ), ordered_fields:make_list('Path', 'Installed version', 'Fixed version') ); if (opt_in) report += '\n\n' + 'Although the type whitelisting feature of RadAsyncUpload is available for this version,' + '\n' + 'we are not able to determine if this is actually enabled. Following the advisory,' + '\n' + 'you should ensure that this is the case.'; security_report_v4(port:port, severity:SECURITY_HOLE, extra:report);