CVE-2024-31214 Traccar's unrestricted file upload vulnerability in device image upload could lead to remote code execution
장치 이미지 업로드에서 Traccar의 무제한 파일 업로드 취약점으로 인해 원격 코드 실행이 발생할 수 있음
설명
Traccar is an open source GPS tracking system. Traccar versions 5.1 through 5.12 allow arbitrary files to be uploaded through the device image upload API. Attackers have full control over the file contents, full control over the directory where the file is stored, full control over the file extension, and partial control over the file name. While it's not for an attacker to overwrite an existing file, an attacker can create new files with certain names and attacker-controlled extensions anywhere on the file system. This can potentially lead to remote code execution, XSS, DOS, etc. The default install of Traccar makes this vulnerability more severe. Self-registration is enabled by default, allowing anyone to create an account to exploit this vulnerability. Traccar also runs by default with root/system privileges, allowing files to be placed anywhere on the file system. Version 6.0 contains a fix for the issue. One may also turn off self-registration by default, as that would make most vulnerabilities in the application much harder to exploit by default and reduce the severity considerably.
Traccar는 오픈 소스 GPS 추적 시스템입니다. Traccar 버전 5.1부터 5.12까지 임의의 파일을 장치 이미지 업로드 API를 통해 업로드할 수 있습니다. 공격자는 파일 내용을 완전히 제어하고, 파일이 저장된 디렉토리를 완전히 제어하며, 파일 확장명을 완전히 제어하고, 파일 이름을 부분 제어합니다. 공격자가 기존 파일을 덮어쓰는 것은 아니지만, 공격자는 파일 시스템의 어느 곳에서나 특정 이름과 공격자가 제어하는 확장명을 가진 새 파일을 만들 수 있습니다. 이로 인해 원격 코드 실행, XSS, DOS 등이 발생할 수 있습니다. Traccar의 기본 설치로 인해 이 취약점이 더욱 심각해집니다. 자체 등록은 기본적으로 활성화되어 누구나 이 취약점을 악용할 수 있는 계정을 만들 수 있습니다. Traccar는 또한 루트/시스템 권한으로 기본적으로 실행되므로 파일 시스템의 어느 곳에나 파일을 배치할 수 있습니다. 버전 6.0에는 이 문제에 대한 수정 사항이 포함되어 있습니다. 또한 기본적으로 자체 등록을 끌 수 있는데, 이는 애플리케이션의 대부분의 취약점을 기본적으로 악용하기 어렵게 만들고 심각도를 상당히 줄이기 때문입니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
traccar
traccar
영향 받는 버전
- 5.1 이상 6.0 미만
해결 버전
- 6.0 이상
참고 자료 4건
- github.com https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/model/Device.java#L56 (새 창)
- github.com https://github.com/traccar/traccar/blob/v5.12/src/main/java/org/traccar/api/resource/DeviceResource.java#L191 (새 창)
- github.com https://github.com/traccar/traccar/commit/3fbdcd81566bc72e319ec05c77cf8a4120b87b8f (새 창)
- github.com https://github.com/traccar/traccar/security/advisories/GHSA-3gxq-f2qj-c8v9 (새 창)