Rule Definition
The 'strcat()' function is a source of buffer overflow vulnerabilities. More secure variants of the function are available and should be used.
Remediation
On Linux/Unix/Windows, prefer using the 'strncat()' function instead.
On iOS (FreeBSD), prefer using the 'strlcat()' function instead
Reference
Secure Programming for Linux and Unix HOWTO -
Creating Secure Software
http://www.dwheeler.com/secure-programs/
Apple Secure Coding Guide
https://developer.apple.com/library/mac/documentation/Security/Conceptual/SecureCodingGuide/Articles/BufferOverflows.html#//apple_ref/doc/uid/TP40002577-SW1
Related Technologies
Technical Criterion
Secure Coding - API Abuse
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.