9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Debian bug 737206 - rc shell uses insecurely /tmp
@ 2014-12-03 23:49 Stéphane Aulery
  2014-12-05  2:33 ` [9fans] " Charles Forsyth
  2014-12-07 17:35 ` anselm
  0 siblings, 2 replies; 17+ messages in thread
From: Stéphane Aulery @ 2014-12-03 23:49 UTC (permalink / raw)
  To: rsc, anselm, 9trouble, 9fans

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

Hello,

I make you pass an open bug report on the Debian bts about rc.
I do not know to whom I should speak. The code comes from 9base, who
just plan9port, etc. Here is the report [1]:

   Package: 9base
   Version: 1:6-6
   Severity: important
   Tags: security

   Murray McAllister from Red Hat Security Response Team discovered that rc
   creates temporary files in an insecure way:

   $ strace -o '| grep /tmp' ./test-heredoc
   open("/tmp/here217f.0000", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5
   open("/tmp/here217f.0000", O_RDONLY|O_LARGEFILE) = 5
   moo
   unlink("/tmp/here217f.0000")            = 0

   As you can see, the filenames are easily predictable, and the O_EXCL
   flag is missing.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737206

Regards,

--
Stéphane Aulery

[-- Attachment #2: test-heredoc --]
[-- Type: text/plain, Size: 47 bytes --]

#!/usr/lib/plan9/bin/rc
cat << EOF
moo
EOF

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [9fans] Debian bug 737206 - rc shell uses insecurely /tmp
@ 2014-12-05  3:38 sl
  2014-12-05  9:50 ` David L. Craig
  0 siblings, 1 reply; 17+ messages in thread
From: sl @ 2014-12-05  3:38 UTC (permalink / raw)
  To: 9fans

Aren't they talking about rc when running on their operating system?

sl



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-12-07 17:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-03 23:49 Debian bug 737206 - rc shell uses insecurely /tmp Stéphane Aulery
2014-12-05  2:33 ` [9fans] " Charles Forsyth
2014-12-05  3:08   ` Bruce Ellis
2014-12-05  3:20     ` Skip Tavakkolian
2014-12-05  4:14     ` Kurt H Maier
2014-12-06  1:58       ` Bruce Ellis
2014-12-07 17:35 ` anselm
2014-12-05  3:38 [9fans] " sl
2014-12-05  9:50 ` David L. Craig
2014-12-06  0:08   ` Charles Forsyth
2014-12-06  5:22     ` lucio
2014-12-06 18:29       ` Charles Forsyth
2014-12-06 18:41         ` erik quanstrom
2014-12-06 20:56           ` Wes Kussmaul
2014-12-07  4:23           ` lucio
2014-12-07  7:31             ` erik quanstrom
2014-12-07  2:37         ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).