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; 7+ 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] 7+ messages in thread

* Re: [9fans] Debian bug 737206 - rc shell uses insecurely /tmp
  2014-12-03 23:49 Debian bug 737206 - rc shell uses insecurely /tmp Stéphane Aulery
@ 2014-12-05  2:33 ` Charles Forsyth
  2014-12-05  3:08   ` Bruce Ellis
  2014-12-07 17:35 ` anselm
  1 sibling, 1 reply; 7+ messages in thread
From: Charles Forsyth @ 2014-12-05  2:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: Russ Cox, anselm, 9trouble

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

On Wed, Dec 3, 2014 at 11:49 PM, Stéphane Aulery <saulery@free.fr> wrote:

> discovered that rc
>    creates temporary files in an insecure way:
>

rc was built for a system that made /tmp secure by not sharing it (it's
always private to a user and even sometimes to a set of processes).
That way not every app has to try to help sustain the pretence that a
shared /tmp can really be secured (+s bits, EXCL create, etc..)
Obviously the version for Unix will have to change its generation scheme to
fit in.

[-- Attachment #2: Type: text/html, Size: 919 bytes --]

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

* Re: [9fans] Debian bug 737206 - rc shell uses insecurely /tmp
  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
  0 siblings, 2 replies; 7+ messages in thread
From: Bruce Ellis @ 2014-12-05  3:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Don't these people have better things to do than finding non-bugs in
systems they don't understand?

brucee

On 5 December 2014 at 13:33, Charles Forsyth <charles.forsyth@gmail.com>
wrote:

>
> On Wed, Dec 3, 2014 at 11:49 PM, Stéphane Aulery <saulery@free.fr> wrote:
>
>> discovered that rc
>>    creates temporary files in an insecure way:
>>
>
> rc was built for a system that made /tmp secure by not sharing it (it's
> always private to a user and even sometimes to a set of processes).
> That way not every app has to try to help sustain the pretence that a
> shared /tmp can really be secured (+s bits, EXCL create, etc..)
> Obviously the version for Unix will have to change its generation scheme
> to fit in.
>

[-- Attachment #2: Type: text/html, Size: 1441 bytes --]

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

* Re: [9fans] Debian bug 737206 - rc shell uses insecurely /tmp
  2014-12-05  3:08   ` Bruce Ellis
@ 2014-12-05  3:20     ` Skip Tavakkolian
  2014-12-05  4:14     ` Kurt H Maier
  1 sibling, 0 replies; 7+ messages in thread
From: Skip Tavakkolian @ 2014-12-05  3:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

+1 😄


> On Dec 4, 2014, at 7:08 PM, Bruce Ellis <bruce.ellis@gmail.com> wrote:
> 
> Don't these people have better things to do than finding non-bugs in systems they don't understand?
> 
> brucee
> 
>> On 5 December 2014 at 13:33, Charles Forsyth <charles.forsyth@gmail.com> wrote:
>> 
>>> On Wed, Dec 3, 2014 at 11:49 PM, Stéphane Aulery <saulery@free.fr> wrote:
>>> discovered that rc
>>>    creates temporary files in an insecure way:
>> 
>> rc was built for a system that made /tmp secure by not sharing it (it's always private to a user and even sometimes to a set of processes).
>> That way not every app has to try to help sustain the pretence that a shared /tmp can really be secured (+s bits, EXCL create, etc..)
>> Obviously the version for Unix will have to change its generation scheme to fit in.
> 

[-- Attachment #2: Type: text/html, Size: 1770 bytes --]

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

* Re: [9fans] Debian bug 737206 - rc shell uses insecurely /tmp
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Kurt H Maier @ 2014-12-05  4:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Quoting Bruce Ellis <bruce.ellis@gmail.com>:

> Don't these people have better things to do than finding non-bugs in
> systems they don't understand?
>
> brucee

This bug is being reported against 9base, which is a port of stuff
to unix similar to (and based on) plan9port.

He is reporting it to 9fans and 9trouble because Debian people are
not very good at doing things correctly.   Fortunately he seems to
accidentally have sent his message to some folks who might care in
addition to the ones who don't.

khm




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

* Re: [9fans] Debian bug 737206 - rc shell uses insecurely /tmp
  2014-12-05  4:14     ` Kurt H Maier
@ 2014-12-06  1:58       ` Bruce Ellis
  0 siblings, 0 replies; 7+ messages in thread
From: Bruce Ellis @ 2014-12-06  1:58 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Well I hope he has fun fixing a sandwich. Your words  ... "because Debian
people are not very good at doing things correctly".

On 5 December 2014 at 15:14, Kurt H Maier <khm@sciops.net> wrote:

> Quoting Bruce Ellis <bruce.ellis@gmail.com>:
>
>  Don't these people have better things to do than finding non-bugs in
>> systems they don't understand?
>>
>> brucee
>>
>
> This bug is being reported against 9base, which is a port of stuff
> to unix similar to (and based on) plan9port.
>
> He is reporting it to 9fans and 9trouble because Debian people are
> not very good at doing things correctly.   Fortunately he seems to
> accidentally have sent his message to some folks who might care in
> addition to the ones who don't.
>
> khm
>
>
>

[-- Attachment #2: Type: text/html, Size: 1370 bytes --]

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

* Re: Debian bug 737206 - rc shell uses insecurely /tmp
  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-07 17:35 ` anselm
  1 sibling, 0 replies; 7+ messages in thread
From: anselm @ 2014-12-07 17:35 UTC (permalink / raw)
  To: Stéphane Aulery; +Cc: rsc, 9trouble, Fans of the OS Plan 9 from Bell Labs

Hi there,

On 4 December 2014 at 00:49, Stéphane Aulery <saulery@free.fr> wrote:
> 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

thanks for passing this issue on. I intend to address this issue in
the upcoming 9base-7 release.

Out of curiosity, does anybody know if current p9p is still affected
by this? Presumablyit is just 9base-6, as it is based on a 4 year old
p9p pull...

BR,
Anselm


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

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

Thread overview: 7+ 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

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).