Rapid7 Vulnerability & Exploit Database

Cayin CMS NTP Server RCE

Back to Search

Cayin CMS NTP Server RCE

Disclosed
06/04/2020
Created
06/18/2020

Description

This module exploits an authenticated RCE in Cayin CMS <= 11.0. The RCE is executed in the system_service.cgi file's ntpIp Parameter. The field is limited in size, so repeated requests are made to achieve a larger payload. Cayin CMS-SE is built for Ubuntu 16.04 (20.04 failed to install correctly), so the environment should be pretty set and not dynamic between targets. Results in root level access.

Author(s)

  • h00die
  • Gjoko Krstic (LiquidWorm) <gjoko@zeroscience.mk>

Platform

Linux

Architectures

x86, x64

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

;