La-Nai CMS <= 1.2.16 (FCKEditor) Unrestricted File Upload Vulnerability
La-Nai CMS mishandled file uploads in its bundled FCKEditor upload script when a filename carried multiple extensions, so a remote user could upload a PHP script. That let the attacker run arbitrary PHP code on the server.
karmainsecurity.com
Published on karmainsecurity.com
La-Nai CMS contains a flaw that allows a remote user to execute arbitrary PHP code. The vulnerability is caused due to an error in the handling of file uploads in the include/fckeditor/editor/filemanager/upload/php/upload.php script, when a file name has multiple file extensions.
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 the upload script validated only part of a filename with multiple extensions, so a script extension slipped through the check.
Impact
A remote user could upload and execute arbitrary PHP code on the server.
What the attacker needed
Remote access to the upload script; no authentication stated
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.
A file upload feature is meant to accept things like images, but the site checked the filename badly. By naming a file so it looked like an image yet still ended in a script extension, someone could place a program on the server and make it run. That gives the attacker control over what the server does.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.