CWE-393: Return of Wrong Status Code
查看自定义信息:
A function or operation returns an incorrect return value or status code that does not indicate an error, but causes the product to modify its behavior based on the incorrect result.
![]() ![]()
![]() ![]()
![]()
![]() Languages Class: Not Language-Specific(Undetermined Prevalence) ![]()
示例1 In the following example, an HTTP 404 status code is returned in the event of an IOException encountered in a Java servlet. A 404 code is typically meant to indicate a non-existent resource and would be somewhat misleading in this case.
(bad code)
示例语言:Java
尝试 {
//可能会抛出ioexception的东西 。。。
响应。SENDERROR(SC_NOT_FOUND); }
![]()
Relationship
This can be primary or resultant, but it is probably most often primary to other issues.
提供更多信息 - 请选择其他过滤器。
|
使用共同弱点枚举(CWE)和本网站的相关参考Terms of Use。CWE由美国国土安全部(DHS)Cybersecurity and Infrastructure Security Agency(CISA) and managed by theHomeland Security Systems Engineering and Development Institute(HSSEDI)由manbetx客户端首页(MITER)。版权所有©2006–2023,Miter Comanbetx客户端首页rporation。CWE,CWSS,CWRAF和CWE徽标是Miter Corporation的商标。manbetx客户端首页 |