3. Memory Security, Heap overflow
C and C++ Vulnerabilities 취약점들 Buffer overflows On the stack On the heap Due to integer overflow Over-writing and Over-reading Format String mismatches (%s, %1000f 등) Dangling pinter dereferences (해제된 메모리 *접근) -> 전부 memory 관련 문제, pointer를 통한 memory 접근에 문제가 많다 Memory layout Heap overflow - strcpy(one)+strcat(two)>MAX_LEN 일수도 있다. 만약 MAX_LEN보다 크다면, - s->cmp를 덮어쓰게 되고 함수포인터를 역참조할 때 공격자가 원하는 주소로 갈수도 있..
2022.12.11