Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114011 - ebookmerge unsecure temporary directory creation
Summary: ebookmerge unsecure temporary directory creation
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Auditing (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 03:50 UTC by Romang
Modified: 2006-12-27 01:19 UTC (History)
0 users

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-11-30 03:50:19 UTC
Hello,

The package is actually masked but better to prevent

Take a look at : /usr/bin/ebookmerge.sh

12 TMPDIR="/var/tmp/ebooktmp"

85 mktmp () {
86     [ ! -d ${TMPDIR} ] && mkdir -p ${TMPDIR}
87 }

167 if [ -n "$optd" ]
168 then        
169     [ -z "$*" ] && eerror "Miss NAME parameter." && exit 1
170     mktmp
171     cd ${DOWNDIR}
172     einfo "Dowloading eBook $optd in $DOWNDIR..."
173     wget -q -c http://lidn.sourceforge.net/books_download/$optd
174     einfo "Dowloaded."
175 fi

Regards.
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2005-12-18 12:40:24 UTC
there is no such thing as insecure directory creation, the mkdir() syscall doesnt follow symlinks or anything like that. 

Marking INVALID, please REOPEN if i've misunderstood.