Vulnerabilities > CVE-2017-11317 - Inadequate Encryption Strength vulnerability in Telerik UI for Asp.Net Ajax
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
Telerik.Web.UI in Progress Telerik UI for ASP.NET AJAX before R1 2017 and R2 before R2 2017 SP2 uses weak RadAsyncUpload encryption, 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)
- Brute Force In this attack, some asset (information, functionality, identity, etc.) is protected by a finite secret value. The attacker attempts to gain access to this asset by using trial-and-error to exhaustively explore all the possible secret values in the hope of finding the secret (or a value that is functionally equivalent) that will unlock the asset. Examples of secrets can include, but are not limited to, passwords, encryption keys, database lookup keys, and initial values to one-way functions. The key factor in this attack is the attackers' ability to explore the possible secret space rapidly. This, in turn, is a function of the size of the secret space and the computational power the attacker is able to bring to bear on the problem. If the attacker has modest resources and the secret space is large, the challenge facing the attacker is intractable. While the defender cannot control the resources available to an attacker, they can control the size of the secret space. Creating a large secret space involves selecting one's secret from as large a field of equally likely alternative secrets as possible and ensuring that an attacker is unable to reduce the size of this field using available clues or cryptanalysis. Doing this is more difficult than it sounds since elimination of patterns (which, in turn, would provide an attacker clues that would help them reduce the space of potential secrets) is difficult to do using deterministic machines, such as computers. Assuming a finite secret space, a brute force attack will eventually succeed. The defender must rely on making sure that the time and resources necessary to do so will exceed the value of the information. For example, a secret space that will likely take hundreds of years to explore is likely safe from raw-brute force attacks.
- Encryption Brute Forcing An attacker, armed with the cipher text and the encryption algorithm used, performs an exhaustive (brute force) search on the key space to determine the key that decrypts the cipher text to obtain the plaintext.
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);
Related news
References
- http://packetstormsecurity.com/files/159653/Telerik-UI-ASP.NET-AJAX-RadAsyncUpload-Deserialization.html
- http://packetstormsecurity.com/files/159653/Telerik-UI-ASP.NET-AJAX-RadAsyncUpload-Deserialization.html
- http://www.telerik.com/support/kb/aspnet-ajax/upload-%28async%29/details/unrestricted-file-upload
- http://www.telerik.com/support/kb/aspnet-ajax/upload-%28async%29/details/unrestricted-file-upload
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0006
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0006
- https://www.exploit-db.com/exploits/43874/
- https://www.exploit-db.com/exploits/43874/