Joomla! CVE202323752 to Code Execution
An improper access check in Joomla! 4.0.0 to 4.2.7 allowed unauthenticated attackers to leak sensitive configuration data, including MySQL credentials and user details. Attackers could use the leaked credentials to access the database, change a Super User password, and then execute arbitrary code by modifying templates or installing a malicious plugin.
Published on vulncheck.com
On February 16, 2023, Joomla! published a security advisory for CVE-2023-23752. The advisory describes an “improper access check” affecting Joomla!
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an improper access check in Joomla!'s webservice endpoints that allowed unauthenticated access to configuration and user data.
Impact
Under the right circumstances, an attacker could achieve code execution, but this depends on the MySQL server being reachable and the attacker successfully taking over a Super User account.
What the attacker needed
Joomla! 4.0.0 to 4.2.7; MySQL server reachable from the internet (for direct…; or ability to brute-force or reuse credentials (for user…
The fix
The vulnerability was fixed in Joomla! 4.2.8; users should upgrade and consider rotating passwords and checking for webshells.
How it was found
- Send a request to the configuration endpoint with a public parameter to leak database credentials.
- Use the leaked credentials to connect to the MySQL database if it is exposed.
- Change a Super User's password in the database.
- Log into the Joomla! administrative interface with the new password.
- Modify a template to include malicious PHP or install a malicious plugin to execute code.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Joomla! is a system for building websites. A bug let anyone read private settings without logging in, including the password to the website's database. If that database was reachable from the internet, an attacker could use it to take over the site and run their own code.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.