Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [UNIX] xmysqladmin Insecure Temporary File Creation |
|---|---|
| Date: | 12 Jun 2005 11:13:44 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - xmysqladmin Insecure Temporary File Creation ------------------------------------------------------------------------ SUMMARY "xMySQLadmin is a front end to the MySQL database engine. It allows reloads, status check, process control, isamcheck, grant/revoke privileges, creating databases, dropping databases, and creating, altering, and dropping tables." By symbolically linking a valid file to the name of a temporary file, attackers can cause xmysqladmin to rewrite the content of that file. DETAILS Vulnerable Systems: * xmysqladmin version 1.0 xmysqladmin does not validate the existence of a temporary file. By creating a symbolic link to file with the name of the temporary file, it is possible to override the content of the linked file. Vulnerable code: Makefile: BACKUPDIR = /tmp In createDropDB.c : begin line 94 void dropdb_drop(FL_OBJECT *obj, long data) { char *cmd; if(!fl_show_question("WARNING!!!\nThis database will be delete.\nDo you want to continue?", 0)) return; if(!fl_show_question("WARNING!!!\nThis database will be delete.\nAre you sure?", 0)) return; cmd = (char *) malloc(2048); if(!cmd) return; sprintf(cmd, "%s %s/%s.tar%s %s%s/*", BACKUP, BACKUPDIR, g_dropdb_dbfname, BACKUPSUFFIX, Setup.datapath, g_dropdb_dbfname); fl_show_command_log(FL_TRANSIENT); fl_exe_command(cmd, 1); free(cmd); { MYSQL connection; if(g_mysql_connect(&connection, Setup.host, Setup.user, Setup.password)) { if(mysql_drop_db(&connection, g_dropdb_dbfname)) { fl_show_alert(mysql_error(&connection),"","",0); } else { fl_show_message("The database",g_dropdb_dbfname,"has been destroyed"); } mysql_close(&connection); } else { fl_show_alert("Cannot connect to server","","",0); } } Disclosure Timeline: Discovered: 2005-05-24 Vendor notified: 2005-05-29 Disclosure: 2005-05-29 ADDITIONAL INFORMATION The information has been provided by <mailto:exploits@zataz.net> ZATAZ Audits. The original article can be found at: <http://www.zataz.net/adviso/xmysqladmin-05292005.txt> http://www.zataz.net/adviso/xmysqladmin-05292005.txt ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [EXPL] GNU Mailutils Remote Format String Exploit (IMAP4d), SecuriTeam |
|---|---|
| Next by Date: | [NEWS] WebSphere Application Server Administrative Console Buffer Overflow, SecuriTeam |
| Previous by Thread: | [EXPL] GNU Mailutils Remote Format String Exploit (IMAP4d), SecuriTeam |
| Next by Thread: | [NEWS] WebSphere Application Server Administrative Console Buffer Overflow, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |