目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CWE-749 暴露危险的方法或函数 类漏洞列表 127

CWE-749 暴露危险的方法或函数 类弱点 127 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-749指危险方法或函数暴露,属于接口访问控制缺陷。当API包含未受限制的危险功能时,攻击者可利用该接口直接调用敏感操作,从而引发权限提升、数据泄露或系统破坏等严重后果。开发者应避免将高危功能暴露给外部,通过实施严格的身份验证、细粒度权限管理及最小权限原则,确保仅授权用户能访问特定方法,从而有效缓解此类风险。

MITRE CWE 官方描述
CWE:CWE-749 暴露的危险方法或函数 (Exposed Dangerous Method or Function) 英文:该产品提供了一个应用程序编程接口 (API) 或类似的接口,用于与外部实体进行交互,但该接口包含一个未受到适当限制的危险方法或函数。 这种弱点可能导致多种不同的衍生弱点,具体取决于所暴露方法的行为。它可能适用于各种技术和方法,例如 ActiveX 控件、Java 函数、IOCTL 等。暴露可能以几种不同的方式发生:该函数/方法从未打算暴露给外部实体;该函数/方法仅打算被有限的实体集访问,例如仅从单个网站进行的基于 Internet 的访问。
常见影响 (1)
Integrity, Confidentiality, Availability, Access Control, OtherGain Privileges or Assume Identity, Read Application Data, Modify Application Data, Execute Unauthorized Code or Commands, Other
Exposing critical functionality essentially provides an attacker with the privilege level of the exposed functionality. This could result in the modification or exposure of sensitive data or possibly even execution of arbitrary code.
缓解措施 (2)
Architecture and DesignIf you must expose a method, make sure to perform input validation on all arguments, limit access to authorized parties, and protect against all possible vulnerabilities.
Architecture and Design, ImplementationIdentify all exposed functionality. Explicitly list all functionality that must be exposed to some user or set of users. Identify which functionality may be: accessible to all users restricted to a small set of privileged users prevented from being directly accessible at all Ensure that the implemented code follows these expectations. This includes setting the appropriate access modifiers where ap…
代码示例 (2)
In the following Java example the method removeDatabase will delete the database with the name specified in the input parameter.
public void removeDatabase(String databaseName) { try { Statement stmt = conn.createStatement(); stmt.execute("DROP DATABASE " + databaseName); } catch (SQLException ex) {...} }
Bad · Java
private void removeDatabase(String databaseName) { try { Statement stmt = conn.createStatement(); stmt.execute("DROP DATABASE " + databaseName); } catch (SQLException ex) {...} }
Good · Java
These Android and iOS applications intercept URL loading within a WebView and perform special actions if a particular URL scheme is used, thus allowing the Javascript within the WebView to communicate with the application:
// Android @Override public boolean shouldOverrideUrlLoading(WebView view, String url){ if (url.substring(0,14).equalsIgnoreCase("examplescheme:")){ if(url.substring(14,25).equalsIgnoreCase("getUserInfo")){ writeDataToView(view, UserData); return false; } else{ return true; } } }
Bad · Java
// iOS -(BOOL) webView:(UIWebView *)exWebView shouldStartLoadWithRequest:(NSURLRequest *)exRequest navigationType:(UIWebViewNavigationType)exNavigationType { NSURL *URL = [exRequest URL]; if ([[URL scheme] isEqualToString:@"exampleScheme"]) { NSString *functionString = [URL resourceSpecifier]; if ([functionString hasPrefix:@"specialFunction"]) { // Make data available back in webview. UIWebView *webView = [self writeDataToView:[URL query]]; } return NO; } return YES; }
Bad · Objective-C
CVE ID标题CVSS风险等级Published
CVE-2019-10918 西门子 SIMATIC WinCC 安全漏洞 — SIMATIC PCS 7 V8.0 and earlier 8.8 -2019-05-14
CVE-2019-5015 Pixar Renderman 代码问题漏洞 — Pixar Renderman 7.8 -2019-03-08
CVE-2018-10931 Cobbler 资料不足漏洞 — cobbler 9.8 -2018-08-09
CVE-2018-8868 Medtronic MyCareLink Patient Monitor、24950 MyCareLink Monitor和24952 MyCareLink Monitor 安全漏洞 — 24950 MyCareLink Monitor 6.2 Medium2018-07-02
CVE-2016-9469 GitLab 安全漏洞 — GitLab Community Edition & GitLab Enterprise Edition 8.13.0, 8.13.0-ee, 8.13.1, 8.13.1-ee, 8.13.2, 8.13.2-ee, 8.13.3, 8.13.3-ee, 8.13.4, 8.13.4-ee, 8.13.5, 8.13.5-ee, 8.13.6, 8.13.6-ee, 8.13.7, 8.14.0, 8.14.0-ee, 8.14.1 8.2 -2017-03-28
CVE-2014-5415 Beckhoff Embedded PC图像和Automation Device Specification TwinCAT组件安全漏洞 — Embedded PC Images 9.1 Critical2016-10-05
CVE-2014-0758 ICONICS GENESIS32 ActiveX控件输入验证漏洞 — GENESIS32 7.8 -2014-02-24

CWE-749(暴露危险的方法或函数) 是常见的弱点类别,本平台收录该类弱点关联的 127 条 CVE 漏洞。