For the complete documentation index, see llms.txt. This page is also available as Markdown.

SuiteCRM

SuiteCRM can expose useful version information after login. In the observed path, default admin:admin access to SuiteCRM 7.12.3 led to authenticated RCE through CVE-2022-23940.

Discovery

Useful indicators:

80/tcp    open  http    Apache httpd 2.4.38 ((Debian))
| http-title: SuiteCRM
|_Requested resource was index.php?action=Login&module=Users
| http-robots.txt: 1 disallowed entry
|_/
3306/tcp  open  mysql   MySQL (unauthorized)
33060/tcp open  mysqlx  MySQL X protocol listener

WhatWeb may show:

Apache[2.4.38], Cookies[PHPSESSID], RedirectLocation[index.php?action=Login&module=Users]
Apache[2.4.38], Cookies[sugar_user_theme], HTML5, HttpOnly[sugar_user_theme], JQuery, PHP, PasswordField[username_password], PoweredBy[SugarCRM], Title[SuiteCRM]

Useful application paths:

http://TARGET/index.php?action=Login&module=Users
http://TARGET/index.php?module=Home&action=About
http://TARGET/index.php?module=Users&action=ListView&return_module=Users&return_action=DetailView

Default Admin Login

Working credentials:

After login, the About page disclosed:

The user list was viewable from the Users module. Observed usernames:

CVE-2022-23940 Authenticated RCE

Public exploit used:

Exploit options:

Start a listener:

Run the exploit with the working admin credentials:

Successful output:

Successful shell context:

Post-Exploitation

Check the SuiteCRM config files in the web root:

Useful config.php values observed:

Connect to MySQL locally:

Local proof was readable by the web user:

Last updated