버퍼 경계 초과 접근 (Buffer Overflow)
Improper Restriction of Operations within the Bounds of a Memory Buffer
설명
잠재적 영향
해결 방법
취약한 코드 및 안전한 코드 예시
취약한 코드
// 취약한 코드 예시
let buf = Buffer.alloc(8);
// noAssert를 true로 설정하여 경계 체크를 하지 않음
buf.writeInt32LE(1234, 10, true); // 10이 버퍼 길이를 넘어섬
buf.readUInt8(20, true); // 존재하지 않는 메모리 접근안전한 코드
참조
Previous출력 인코딩 또는 이스케이프 미흡 (Improper Output Encoding or Escaping)NextSQL 인젝션 (SQL Injection) - PostgreSQL
Last updated