Rapid7 Vulnerability & Exploit Database

Traccar v5 Remote Code Execution (CVE-2024-31214 and CVE-2024-24809)

Back to Search

Traccar v5 Remote Code Execution (CVE-2024-31214 and CVE-2024-24809)

Disclosed
08/23/2024
Created
09/24/2024

Description

Remote Code Execution in Traccar v5.1 - v5.12. Remote code execution can be obtained by combining two vulnerabilities: A path traversal vulnerability (CVE-2024-24809) and an unrestricted file upload vulnerability (CVE-2024-31214). By default, the application allows self-registration, enabling any user to register an account and exploit the issues. Moreover, the application runs by default with root privileges, potentially resulting in a complete system compromise. This module, which should work on any Red Hat-based Linux system, exploits these issues by adding a new cronjob file that executes the specified payload.

Author(s)

  • Michael Heinzl
  • yiliufeng168
  • Naveen Sunkavally

Platform

Linux

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/traccar_rce_upload
msf exploit(traccar_rce_upload) > show targets
    ...targets...
msf exploit(traccar_rce_upload) > set TARGET < target-id >
msf exploit(traccar_rce_upload) > show options
    ...show and set options...
msf exploit(traccar_rce_upload) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;