-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ________________________________________________________________________ OpenPKG Security Advisory The OpenPKG Project http://www.openpkg.org/security.html http://www.openpkg.org email@example.com firstname.lastname@example.org OpenPKG-SA-2004.014 14-Apr-2004 ________________________________________________________________________ Package: mysql Vulnerability: insecure temporary file creation OpenPKG Specific: no Affected Releases: Affected Packages: Corrected Packages: OpenPKG CURRENT <= mysql-4.0.18-20040214 >= mysql-4.0.18-20040414 OpenPKG 2.0 <= mysql-4.0.18-2.0.0 >= mysql-4.0.18-2.0.1 OpenPKG 1.3 <= mysql-4.0.14-1.3.2 >= mysql-4.0.14-1.3.3 Dependent Packages: none Description: Shaun Colley discovered  that the scripts "mysqlbug" and "mysqld_multi" of the MySQL RDBMS  perform insecure creations of temporary files. An attacker could create symbolic links in /tmp to achieve the overwriting of files with the privileges of the user invoking the scripts. The RDBMS startup wrapper "mysqld_multi" is currently not used in OpenPKG, although it is contained in the "mysql" package. The "mysqlbug" script could be run manually by the administrator. The Common Vulnerabilities and Exposures (CVE) project assigned the ids CAN-2004-0381  and CAN-2004-0388  to the problem. Please check whether you are affected by running "
/bin/rpm -q mysql". If you have the "mysql" package installed and its version is affected (see above), we recommend that you immediately upgrade it (see Solution).  Solution: Select the updated source RPM appropriate for your OpenPKG release , fetch it from the OpenPKG FTP service  or a mirror location, verify its integrity , build a corresponding binary RPM from it  and update your OpenPKG installation by applying the binary RPM . For the most recent release OpenPKG 2.0, perform the following operations to permanently fix the security problem (for other releases adjust accordingly). $ ftp ftp.openpkg.org ftp> bin ftp> cd release/2.0/UPD ftp> get mysql-4.0.18-2.0.1.src.rpm ftp> bye $ /bin/openpkg rpm -v --checksig mysql-4.0.18-2.0.1.src.rpm $ /bin/openpkg rpm --rebuild mysql-4.0.18-2.0.1.src.rpm $ su - # /bin/openpkg rpm -Fvh /RPM/PKG/mysql-4.0.18-2.0.1.*.rpm ________________________________________________________________________ References:  http://www.mysql.com/  http://www.nettwerked.co.uk/advisories/mysqlbug  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0381  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0388  http://www.openpkg.org/tutorial.html#regular-source  http://www.openpkg.org/tutorial.html#regular-binary  ftp://ftp.openpkg.org/release/1.3/UPD/mysql-4.0.14-1.3.3.src.rpm  ftp://ftp.openpkg.org/release/2.0/UPD/mysql-4.0.18-2.0.1.src.rpm  ftp://ftp.openpkg.org/release/1.3/UPD/  ftp://ftp.openpkg.org/release/2.0/UPD/  http://www.openpkg.org/security.html#signature ________________________________________________________________________ For security reasons, this advisory was digitally signed with the OpenPGP public key "OpenPKG "(ID 63C4CB9F) of the OpenPKG project which you can retrieve from http://pgp.openpkg.org and hkp://pgp.openpkg.org. Follow the instructions on http://pgp.openpkg.org/ for details on how to verify the integrity of this advisory. ________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Comment: OpenPKG iD8DBQFAfaNfgHWT4GPEy58RAgwEAKDpIRVD8RvfCSqKJI+ku38foCTpfQCfUAUM rKbhklY4c7khNgWxkGxrBNo= =Lk27 -----END PGP SIGNATURE-----