CVE-2022-33171 The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptio…
설명
The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function is a user-controlled parsed JSON object, supplying a crafted FindOneOptions instead of an id string leads to SQL injection. NOTE: the vendor's position is that the user's application is responsible for input validation
0.3.0 이전의 TypeORM에서 findOne 함수는 문자열 또는 FindOneOptions 객체와 함께 제공 될 수 있습니다. 함수에 입력이 사용자가 제어하는 파싱된 JSON 객체일 때, id 문자열 대신 조작된 FindOneOptions를 제공하면 SQL 삽입으로 이어집니다. 참고: 벤더의 입장은 사용자의 애플리케이션이 입력 유효성 검사에 대한 책임이 있다는 것입니다.
영향 받는 제품 제품 1개
-
NVD 기준 해결 버전 있음
typeorm
typeorm
영향 받는 버전
- 0.3.0 미만
해결 버전
- 0.3.0 이상
참고 자료 4건
- packetstormsecurity.com http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html (새 창)
- seclists.org http://seclists.org/fulldisclosure/2022/Aug/7 (새 창)
- github.com https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0 (새 창)
- seclists.org https://seclists.org/fulldisclosure/2022/Jun/51 (새 창)