Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93784 - dev-ml/ocaml-mysql includes tempfile-vulnerable shtool
Summary: dev-ml/ocaml-mysql includes tempfile-vulnerable shtool
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Other
: High minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B3 [glsa]
Keywords:
Depends on:
Blocks: 93782
  Show dependency tree
 
Reported: 2005-05-24 03:09 UTC by Romang
Modified: 2005-08-02 02:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romang 2005-05-24 03:09:31 UTC
Hello,

ocan-mysql is using a vulnerable version off shtool.

ocaml-mysql-1.0.3/etc/shtool

Regards.
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-05-24 05:22:29 UTC
Romang, did you contact upstream for this ? Or do you wait on shtool devs ?
Comment 2 Romang 2005-05-24 06:00:04 UTC
Hello,

If shtool is corrected then we can contact upstream ?

What did you think about.

Regards.
Comment 3 Thierry Carrez (RETIRED) gentoo-dev 2005-05-24 12:25:20 UTC
I would say we should forward them the same fix tigger wrote for shtool.
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-05-26 03:10:43 UTC
Eric, did you forward upstream the fix yet ?
ml herd: please patch the included shtool with the fix from bug 93782
Comment 5 Romang 2005-05-26 03:32:39 UTC
Hello,

Yes upstream is informed.

Regards.
Comment 6 Thierry Carrez (RETIRED) gentoo-dev 2005-05-29 03:43:53 UTC
Hmm we should wait for a more complete patch. Stay tuned...
Comment 7 Matthieu Sozeau (RETIRED) gentoo-dev 2005-05-31 06:59:34 UTC
I'm waiting... 
Comment 8 Tavis Ormandy (RETIRED) gentoo-dev 2005-05-31 07:16:18 UTC
(In reply to comment #7)
> I'm waiting... 

please use attachment 60117 [details, diff] 
Comment 9 Matthieu Sozeau (RETIRED) gentoo-dev 2005-06-02 08:14:02 UTC
Should be fixed in CVS now.
Comment 10 Thierry Carrez (RETIRED) gentoo-dev 2005-06-02 09:16:26 UTC
Thx Matthieu. We'll close this when the GLSA will be out.
Comment 11 Thierry Carrez (RETIRED) gentoo-dev 2005-06-11 10:47:54 UTC
GLSA 200506-08
Comment 12 Jesse D. Guardiani 2005-08-01 09:04:43 UTC
This new patch fails on my system:

>>> Source unpacked.
 * Applying ocaml-mysql-1.0.3-head.patch ...                                   
                                                                               
              [ ok ]
 * Applying ocaml-mysql-1.0.3-shtool.patch ...

 * Failed Patch: ocaml-mysql-1.0.3-shtool.patch !
 *  ( /usr/portage/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-shtool.patch )
 *
 * Include in your bugreport the contents of:
 *
 *  
/var/tmp/portage/ocaml-mysql-1.0.3-r1/temp/ocaml-mysql-1.0.3-shtool.patch-13375.out


!!! ERROR: dev-ml/ocaml-mysql-1.0.3-r1 failed.
!!! Function epatch, Line 359, Exitcode 0
!!! Failed Patch: ocaml-mysql-1.0.3-shtool.patch!
!!! If you need support, post the topmost build error, NOT this status message.

Exit 1


sh.common doesn't exist:

ls -al /var/tmp/portage/ocaml-mysql-1.0.3-r1/work/ocaml-mysql-1.0.3/
total 273
drwxr-xr-x  4 root root    616 Jan 27  2004 .
drwx------  3 root root     88 Aug  1 11:51 ..
-rw-r--r--  1 root root   1931 Jan 27  2004 .ocmysql.prcs_aux
-rw-r--r--  1 root root   3065 Jan 27  2004 CHANGES
-rw-r--r--  1 root root  26536 Jan 27  2004 COPYING
-rw-r--r--  1 root root    138 Jan 27  2004 META
-rw-r--r--  1 root root    142 Jan 27  2004 META.in
-rw-r--r--  1 root root    124 Jan 27  2004 Makefile.conf
-rw-r--r--  1 root root    410 Jan 27  2004 Makefile.in
-rw-r--r--  1 root root  23881 Jan 27  2004 OCamlMakefile
-rw-r--r--  1 root root   3139 Jan 27  2004 README
-rw-r--r--  1 root root     50 Jan 27  2004 VERSION
-rwxr-xr-x  1 root root 113197 Jan 27  2004 configure
-rw-r--r--  1 root root   1686 Jan 27  2004 configure.in
-rw-r--r--  1 root root   1692 Jan 27  2004 demo.ml
drwxr-xr-x  3 root root     72 Jan 27  2004 doc
drwxr-xr-x  2 root root    216 Aug  1 11:51 etc
-rwxr-xr-x  1 root root   5598 Jan 27  2004 install-sh
-rw-r--r--  1 root root  22689 Jan 27  2004 mysql.ml
-rw-r--r--  1 root root  15094 Jan 27  2004 mysql.mli
-rw-r--r--  1 root root  14498 Jan 27  2004 mysql_stubs.c
-rw-r--r--  1 root root   2583 Jan 27  2004 ocmysql.prj

Which file was that patch supposed to be applied to?
Comment 13 Thierry Carrez (RETIRED) gentoo-dev 2005-08-02 02:12:25 UTC
I can confirm it's broken. It's not a security bug though, so you should open a
new bug (critical/blocker) saying ocaml_mysql stable can't be emerged currently.
You can assign it to mattam@gentoo.org and/or the ml@gentoo.org herd.