1511
}
}
sub PrivilegedFunc
{
my $result = CheckAuth($username);
ReportAuth($username, $result, 0);
DoReallyImportantStuff();
}
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 742 CERT C Secure Coding Standard (2008) Chapter 9 -
Memory Management (MEM)
734 2345
MemberOf 876 CERT C++ Secure Coding Section 08 - Memory
Management (MEM)
868 2376
MemberOf 990 SFP Secondary Cluster: Tainted Input to Command 888 2413
MemberOf 1412 Comprehensive Categorization: Poor Coding Practices 1400 2538
Notes
Relationship
When primary, this weakness is most likely to occur in rarely-tested code, since the wrong value
can change the semantic meaning of the program's execution and lead to obviously-incorrect
behavior. It can also be resultant from issues in which the program assigns the wrong value to
a variable, and that variable is later used in a function call. In that sense, this issue could be
argued as having chaining relationships with many implementation errors in CWE.
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
CERT C Secure Coding MEM04-
C
Do not perform zero length allocations
Software Fault Patterns SFP24 Tainted input to command
CWE-688: Function Call With Incorrect Variable or Reference as Argument
Weakness ID : 688
Structure : Simple
Abstraction : Variant
Description
The product calls a function, procedure, or routine, but the caller specifies the wrong variable
or reference as one of the arguments, which may lead to undefined behavior and resultant
weaknesses.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
CWE Version 4.14
CWE-688: Function Call With Incorrect Variable or Reference as Argument
CWE-688: Function Call With Incorrect Variable or Reference as Argument