As I code, I try to be security-conscious all the time. The problem is that I need to know what to look for and what to prevent.
Is there a list somewhere of the most common (C++) software vulnerabilities and how to avoid them?
What about C++ software for specific uses, e.g. a linux console software or a web application?
One of the most common process vulnerabilities is an authentication weakness, where users, and even IT administrators, use weak passwords. Human vulnerabilities are created by user errors that can expose networks, hardware, and sensitive data to malicious actors.
Many resources are available, some in question are:
This site may have links to what you are looking for:
http://www.deitel.com/ResourceCenters/Programming/C/CSecurity/tabid/1549/Default.aspx
I guess I'll add that one of the most common problems in C and C++ is buffer overflow:
http://en.wikipedia.org/wiki/Buffer_overflow#Use_of_safe_libraries
For that, use only functions that check boundaries, like strncpy()
instead of strcpy()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With