Pascal : Obsolete or unsafe function
Classification
Overview
The function used is deprecated or unsafe (regardless of how it is used). It is recommended to replace it with a secure analog.
ShellExecute and WinExec are examples of obsolete Windows functions.
StrCopy, lstrcpy, strcat, strlen, strcmp functions do not work correctly with memory buffers and pointers. In particular, if the strings passed as arguments do not end with a binary zero, the result of the functions’ work is unpredictable. This allows an attacker to implement such attacks as violation of the integrity and operability of the program.
The LoadLibrary function on an unsuccessful call returns an error code that could occur both in the LoadLibrary, itself and in one of the functions it calls. This behavior complicates error handling.
DerScanner Severity Score
Check your Pascal code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
