Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250553 - Symlink attack in net-dialup/ppp-2.4.4-r21 /etc/ppp/ip-up.d/40-dns.sh
Summary: Symlink attack in net-dialup/ppp-2.4.4-r21 /etc/ppp/ip-up.d/40-dns.sh
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B3 [ebuild]
Keywords:
Depends on:
Blocks: debian-tempfile
  Show dependency tree
 
Reported: 2008-12-10 21:09 UTC by Stefan Behte (RETIRED)
Modified: 2008-12-10 21:50 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 Stefan Behte (RETIRED) gentoo-dev Security 2008-12-10 21:09:45 UTC
This bug is CVE-2008-5367-like, but in a different script, that why filing it not as CVE-2008-5367.

We've got: 
/etc/ppp/ip-up.d/40-dns.sh:                     } > $REALRESOLVCONF.tmp
/etc/ppp/ip-up.d/40-dns.sh:                     mv $REALRESOLVCONF.tmp $REALRESOLVCONF
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2008-12-10 21:50:02 UTC
1) I should have attached it.
2) REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf) -> normal users will not able to able to create a symlink for /etc/resolv.conf.tmp
3) I promise, I'll have a deeper look next time.

Sorry guys. :(