Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CWE-394:Unexpected Status Code or Return Value
Weakness ID:394
Version:v4.17
Weakness Name:Unexpected Status Code or Return Value
Vulnerability Mapping:Allowed
Abstraction:Base
Structure:Simple
Status:Draft
Likelihood of Exploit:
DetailsContent HistoryObserved CVE ExamplesReports
▼Description

The product does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the product.

▼Extended Description

▼Alternate Terms
▼Relationships
Relevant to the view"Research Concepts - (1000)"
NatureMappingTypeIDName
ChildOfAllowed-with-ReviewC754Improper Check for Unusual or Exceptional Conditions
Nature: ChildOf
Mapping: Allowed-with-Review
Type: Class
ID: 754
Name: Improper Check for Unusual or Exceptional Conditions
▼Memberships
NatureMappingTypeIDName
MemberOfProhibitedC389Error Conditions, Return Values, Status Codes
MemberOfProhibitedC728OWASP Top Ten 2004 Category A7 - Improper Error Handling
MemberOfProhibitedC962SFP Secondary Cluster: Unchecked Status Condition
MemberOfProhibitedC1181SEI CERT Perl Coding Standard - Guidelines 03. Expressions (EXP)
MemberOfProhibitedC1306CISQ Quality Measures - Reliability
MemberOfProhibitedC1405Comprehensive Categorization: Improper Check or Handling of Exceptional Conditions
Nature: MemberOf
Mapping: Prohibited
Type:Category
ID: 389
Name: Error Conditions, Return Values, Status Codes
Nature: MemberOf
Mapping: Prohibited
Type:Category
ID: 728
Name: OWASP Top Ten 2004 Category A7 - Improper Error Handling
Nature: MemberOf
Mapping: Prohibited
Type:Category
ID: 962
Name: SFP Secondary Cluster: Unchecked Status Condition
Nature: MemberOf
Mapping: Prohibited
Type:Category
ID: 1181
Name: SEI CERT Perl Coding Standard - Guidelines 03. Expressions (EXP)
Nature: MemberOf
Mapping: Prohibited
Type:Category
ID: 1306
Name: CISQ Quality Measures - Reliability
Nature: MemberOf
Mapping: Prohibited
Type:Category
ID: 1405
Name: Comprehensive Categorization: Improper Check or Handling of Exceptional Conditions
▼Tags
NatureMappingTypeIDName
MemberOfProhibitedBSBOSS-294Not Language-Specific Weaknesses
MemberOfProhibitedBSBOSS-315Unexpected State (impact)
MemberOfProhibitedBSBOSS-330Alter Execution Logic (impact)
Nature: MemberOf
Mapping: Prohibited
Type:BOSSView
ID: BOSS-294
Name: Not Language-Specific Weaknesses
Nature: MemberOf
Mapping: Prohibited
Type:BOSSView
ID: BOSS-315
Name: Unexpected State (impact)
Nature: MemberOf
Mapping: Prohibited
Type:BOSSView
ID: BOSS-330
Name: Alter Execution Logic (impact)
▼Relevant To View
Relevant to the view"Weaknesses Addressed by the SEI CERT Perl Coding Standard - (1178)"
NatureMappingTypeIDName
MemberOfProhibitedC1181SEI CERT Perl Coding Standard - Guidelines 03. Expressions (EXP)
Nature: MemberOf
Mapping: Prohibited
Type: Category
ID: 1181
Name: SEI CERT Perl Coding Standard - Guidelines 03. Expressions (EXP)
Relevant to the view"CISQ Quality Measures (2020) - (1305)"
NatureMappingTypeIDName
MemberOfProhibitedC1306CISQ Quality Measures - Reliability
Nature: MemberOf
Mapping: Prohibited
Type: Category
ID: 1306
Name: CISQ Quality Measures - Reliability
Relevant to the view"Software Development - (699)"
NatureMappingTypeIDName
MemberOfProhibitedC389Error Conditions, Return Values, Status Codes
Nature: MemberOf
Mapping: Prohibited
Type: Category
ID: 389
Name: Error Conditions, Return Values, Status Codes
Relevant to the view"Software Fault Pattern (SFP) Clusters - (888)"
NatureMappingTypeIDName
MemberOfProhibitedC962SFP Secondary Cluster: Unchecked Status Condition
Nature: MemberOf
Mapping: Prohibited
Type: Category
ID: 962
Name: SFP Secondary Cluster: Unchecked Status Condition
▼Background Detail

▼Common Consequences
ScopeLikelihoodImpactNote
IntegrityOtherN/AUnexpected StateAlter Execution Logic
N/A
Scope: Integrity, Other
Likelihood: N/A
Impact: Unexpected State, Alter Execution Logic
Note:
N/A
▼Potential Mitigations
▼Modes Of Introduction
Phase: Implementation
Note:

N/A

▼Applicable Platforms
Languages
Class: Not Language-Specific(Undetermined Prevalence)
▼Demonstrative Examples
▼Observed Examples
ReferenceDescription
CVE-2004-1395
Certain packets (zero byte and other lengths) cause a recvfrom call to produce an unexpected return code that causes a server's listening loop to exit.
CVE-2002-2124
Unchecked return code from recv() leads to infinite loop.
CVE-2005-2553
Kernel function does not properly handle when a null is returned by a function call, causing it to call another function that it shouldn't.
CVE-2005-1858
Memory not properly cleared when read() function call returns fewer bytes than expected.
CVE-2000-0536
Bypass access restrictions when connecting from IP whose DNS reverse lookup does not return a hostname.
CVE-2001-0910
Bypass access restrictions when connecting from IP whose DNS reverse lookup does not return a hostname.
CVE-2004-2371
Game server doesn't check return values for functions that handle text strings and associated size values.
CVE-2005-1267
Resultant infinite loop when function call returns -1 value.
Reference: CVE-2004-1395
Description:
Certain packets (zero byte and other lengths) cause a recvfrom call to produce an unexpected return code that causes a server's listening loop to exit.
Reference: CVE-2002-2124
Description:
Unchecked return code from recv() leads to infinite loop.
Reference: CVE-2005-2553
Description:
Kernel function does not properly handle when a null is returned by a function call, causing it to call another function that it shouldn't.
Reference: CVE-2005-1858
Description:
Memory not properly cleared when read() function call returns fewer bytes than expected.
Reference: CVE-2000-0536
Description:
Bypass access restrictions when connecting from IP whose DNS reverse lookup does not return a hostname.
Reference: CVE-2001-0910
Description:
Bypass access restrictions when connecting from IP whose DNS reverse lookup does not return a hostname.
Reference: CVE-2004-2371
Description:
Game server doesn't check return values for functions that handle text strings and associated size values.
Reference: CVE-2005-1267
Description:
Resultant infinite loop when function call returns -1 value.
▼Affected Resources
    ▼Functional Areas
      ▼Weakness Ordinalities
      OrdinalityDescription
      ▼Detection Methods
      ▼Vulnerability Mapping Notes
      Usage:Allowed
      Reason:Acceptable-Use
      Rationale:

      This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.

      Comments:

      Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

      Suggestions:
      ▼Notes
      Relationship

      Usually primary, but can be resultant from issues such as behavioral change or API abuse. This can produce resultant vulnerabilities.

      N/A

      ▼Taxonomy Mappings
      Taxonomy NameEntry IDFitEntry Name
      PLOVERN/AN/AUnexpected Status Code or Return Value
      Software Fault PatternsSFP4N/AUnchecked Status Condition
      SEI CERT Perl Coding StandardEXP00-PLImpreciseDo not return undef
      Taxonomy Name: PLOVER
      Entry ID: N/A
      Fit: N/A
      Entry Name: Unexpected Status Code or Return Value
      Taxonomy Name: Software Fault Patterns
      Entry ID: SFP4
      Fit: N/A
      Entry Name: Unchecked Status Condition
      Taxonomy Name: SEI CERT Perl Coding Standard
      Entry ID: EXP00-PL
      Fit: Imprecise
      Entry Name: Do not return undef
      ▼Related Attack Patterns
      IDName
      ▼References
      Details not found