Rapid7 Vulnerability & Exploit Database

BYOB Unauthenticated RCE via Arbitrary File Write and Command Injection (CVE-2024-45256, CVE-2024-45257)

Back to Search

BYOB Unauthenticated RCE via Arbitrary File Write and Command Injection (CVE-2024-45256, CVE-2024-45257)

Disclosed
08/15/2024
Created
10/15/2024

Description

This module exploits two vulnerabilities in the BYOB (Build Your Own Botnet) web GUI: 1. CVE-2024-45256: Unauthenticated arbitrary file write that allows modification of the SQLite database, adding a new admin user. 2. CVE-2024-45257: Authenticated command injection in the payload generation page. These vulnerabilities remain unpatched.

Author(s)

  • chebuya
  • Valentin Lobstein

Platform

Linux,Unix

Architectures

ARCH_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/unix/webapp/byob_unauth_rce
msf exploit(byob_unauth_rce) > show targets
    ...targets...
msf exploit(byob_unauth_rce) > set TARGET < target-id >
msf exploit(byob_unauth_rce) > show options
    ...show and set options...
msf exploit(byob_unauth_rce) > 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

;