Rapid7 Vulnerability & Exploit Database

lastore-daemon D-Bus Privilege Escalation

Back to Search

lastore-daemon D-Bus Privilege Escalation



This module attempts to gain root privileges on Deepin Linux systems by using lastore-daemon to install a package. The lastore-daemon D-Bus configuration on Deepin Linux permits any user in the sudo group to install arbitrary system packages without providing a password, resulting in code execution as root. By default, the first user created on the system is a member of the sudo group. This module has been tested successfully with lastore-daemon versions 0.9.53-1 on Deepin Linux 15.5 (x64); and 0.9.66-1 on Deepin Linux 15.7 (x64).


  • King's Way
  • bcoles <bcoles@gmail.com>




x86, x64


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/local/lastore_daemon_dbus_priv_esc
msf exploit(lastore_daemon_dbus_priv_esc) > show targets
msf exploit(lastore_daemon_dbus_priv_esc) > set TARGET < target-id >
msf exploit(lastore_daemon_dbus_priv_esc) > show options
    ...show and set options...
msf exploit(lastore_daemon_dbus_priv_esc) > 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