C and C++ Binaries


BADFUNC.T_OPEN : Use of t_open

Summary

A use of t_open(), which requires that certain precautions be taken.

Properties

Class Name Use of t_open
Significance security
Mnemonic BADFUNC.T_OPEN
Categories
CWE CWE:676 Use of Potentially Dangerous Function
DISA-3r10 DISA-3r10:V-6157 The designer will ensure the application does not contain invalid URL or path references.
BSI BSI:T_Open Use of t_open
Availability Available for C and C++.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Use of t_open"
To enable all BSI-related classes, including all BSI-specific BADFUNC classes, use the bsi configuration preset.

Resolution

Make sure that the file name argument is a literal string or obtained from a trusted source, and that the transport endpoint is not vulnerable to tampering. If so, you can change the warning state to Suppressed.

Relevant Configuration File Parameters

This class is implemented using a BAD_FUNCTION_* rule set in the general template configuration file.

The following configuration file parameters affect checks for this warning class.