Hi all, I came across a thread on another forum. And there was a thread about exploiting the “system()” call in C … one person pointed out that it may be vulnerable to a buffer overflow sort of attack. It sounds to me like it could be quite possible, but I wanted to ask people who know a little more about C if there was anything in that? Also if it is possible how would you prevent against it?
below is the code they posted...
Code:#include <stdio.h> int main(int argc,char *argv[]) { system(argv[1]); return 0; }