Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Possible VMS Security Flaws
@ 1995-09-07  4:00 Dan Gahlinger
  1995-09-07  4:00 ` "Alan Winston - SSRL Admin Cmptg Mgr"
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Dan Gahlinger @ 1995-09-07  4:00 UTC (permalink / raw)
  To: All

For more than 10 years now (since 1982) I have known about a flaw
in the VMS security.  I have contacted DEC about it (several offices 
local to me) but they didn't seem interested.  I last tested it 
about three years ago, and found the flaw is still present.  I have 
also made requests to DEC several times about security enhancements, 
but they also did not seem interested in those.  Perhaps the 
security system has changed, but if VMS still uses the RWED (SGUW) 
type security, then I'm sure the flaw will remain.  Some portions of 
the flaws are just annoyances (although serious ones as they can 
lock the system admin out of the system) and others are security 
holes that system admins should be taking more seriously.

I'll give you an example of what I'm talking about.  In VMS, when 
you give access to a program, to run it, they need R and E flags at 
one of the four levels of security.  However, this also means they 
can read, type, copy, rename, and move the file.  This is probably 
not what you want, it's certainly not acceptable to me.  For some 
utilities you don't want the user knowing which paths or files are 
being accessed, and you certainly dont want the user copying those 
files or moving or renaming them. (by moving or renaming I mean that 
with the R flag a user can rename the file from the directory it is 
in to their own home directory - thus moving it).  There's other 
weird stuff you can do but i've given too much of a hint to the more 
serious security flaws.

One hint I can give system admins is a little trick I learned years 
ago, and that is, you can flag a DIRECTORY as E (without the R) and 
users can still run and read or write files IF they know the 
SPECIFIC file spec (complete). Wild cards will not work. This way, 
you can dereference a sensitive EXE by having the users run it, but 
it runs a different program in the directory or even a completely 
different path. remember, with the R flag, the user can still copy 
the EXE so make sure the referenced EXE is not obvious.

I think it would be morally irresponsible of me to detail any more 
of the flaws in this medium, but if anyone wants to contact me via 
email I shall take the request into consideration.  Maybe DEC will 
see this and ask me about my other ideas... :)

I have been a long time DEC PDP and VAX user (since 1976) and have 
always loved the VMS operating system.  I have spent several years 
at the administrative level of VAX operations (on 730, 750, 780, 
782, 8600, MicroVax II, and MicroVax 2000).

Dan. (dgahling@cycor.ca)



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

* Re: Possible VMS Security Flaws
  1995-09-07  4:00 Possible VMS Security Flaws Dan Gahlinger
@ 1995-09-07  4:00 ` "Alan Winston - SSRL Admin Cmptg Mgr"
  1995-09-08  4:00 ` Jamie Hanrahan, Kernel Mode Systems
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: "Alan Winston - SSRL Admin Cmptg Mgr" @ 1995-09-07  4:00 UTC (permalink / raw)


In article <42mta6$ikd@bud.peinet.pe.ca>, 
dgahling@cycor.ca (Dan Gahlinger) writes:
>For more than 10 years now (since 1982) I have known about a flaw
>in the VMS security.

>I'll give you an example of what I'm talking about.  In VMS, when 
>you give access to a program, to run it, they need R and E flags at 
>one of the four levels of security.  However, this also means they 
>can read, type, copy, rename, and move the file.  This is probably 
>not what you want, it's certainly not acceptable to me.  For some 
>utilities you don't want the user knowing which paths or files are 
>being accessed, and you certainly dont want the user copying those 
>files or moving or renaming them. (by moving or renaming I mean that 
>with the R flag a user can rename the file from the directory it is 
>in to their own home directory - thus moving it).  There's other 
>weird stuff you can do but i've given too much of a hint to the more 
>serious security flaws.
>

Dan --

Much of this no longer applies, if it ever did.  You can execute a program
without having read access to it -- in fact, this is what the E access is for.
(I'm pretty sure this has been true for as long as I've been paying attention,
which is about 10 years; I started on VMS 3.7.)  


Further, the system was changed a while back so that you can't RENAME a
file unless you have Delete access to it -- Read isn't enough any longer.

This seems to fully address the complaints you make above.  Are there others? 
If there genuinely is a current security hole in this area, I'd like to know
what it is.  If you don't feel comfortable discussing it in this forum, we can
take it to private e-mail.

-- Alan

===============================================================================
 Alan Winston ---   WINSTON@SSRL750.BITNET   or  WINSTON@SLAC.STANFORD.EDU
 Disclaimer: I speak only for myself, not SLAC or SSRL   Phone:  415/926-3056
 Physical mail to: SSRL -- SLAC BIN 69, PO BOX 4349, STANFORD, CA  94309-0210
===============================================================================




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

* Re: Possible VMS Security Flaws
  1995-09-07  4:00 Possible VMS Security Flaws Dan Gahlinger
  1995-09-07  4:00 ` "Alan Winston - SSRL Admin Cmptg Mgr"
  1995-09-08  4:00 ` Jamie Hanrahan, Kernel Mode Systems
@ 1995-09-08  4:00 ` Peter Mayne
  1995-09-09  4:00 ` Possible VMS Security Flaws (NOT) Jasper Rees - Oxford University
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Peter Mayne @ 1995-09-08  4:00 UTC (permalink / raw)


In article <42mta6$ikd@bud.peinet.pe.ca>
dgahling@cycor.ca (Dan Gahlinger) wrote:

> For more than 10 years now (since 1982) I have known about a flaw
> in the VMS security.  I have contacted DEC about it (several offices 
> local to me) but they didn't seem interested.  I last tested it 
> about three years ago, and found the flaw is still present.  I have 
> also made requests to DEC several times about security enhancements, 
> but they also did not seem interested in those.  Perhaps the 
> security system has changed, but if VMS still uses the RWED (SGUW) 
> type security, then I'm sure the flaw will remain.  Some portions of 
> the flaws are just annoyances (although serious ones as they can 
> lock the system admin out of the system) and others are security 
> holes that system admins should be taking more seriously.
> 
> I'll give you an example of what I'm talking about.  In VMS, when 
> you give access to a program, to run it, they need R and E flags at 
> one of the four levels of security.  However, this also means they 
> can read, type, copy, rename, and move the file.

I just tried it. A .EXE with only E permission runs fine, but I can't
type it, copy it, or rename it. Renaming has required D permission for
at least five years (since v5?), and probably more.

> This is probably 
> not what you want, it's certainly not acceptable to me.

Why? An example?

> For some 
> utilities you don't want the user knowing which paths or files are 
> being accessed, and you certainly dont want the user copying those 
> files or moving or renaming them. (by moving or renaming I mean that 
> with the R flag a user can rename the file from the directory it is 
> in to their own home directory - thus moving it).

This is completely wrong.

> There's other 
> weird stuff you can do but i've given too much of a hint to the more 
> serious security flaws.

Except they aren't flaws, because what you say isn't correct. Please tell
us some more wierd stuff.

> One hint I can give system admins is a little trick I learned years 
> ago, and that is, you can flag a DIRECTORY as E (without the R) and 
> users can still run and read or write files IF they know the 
> SPECIFIC file spec (complete). Wild cards will not work.

This is exactly what the documentation says should happen, so it's not
really a little trick.

> This way, 
> you can dereference a sensitive EXE by having the users run it, but 
> it runs a different program in the directory or even a completely 
> different path. remember, with the R flag, the user can still copy 
> the EXE so make sure the referenced EXE is not obvious.

But you don't need R permission to run a .EXE.

How do you define a "sensitive" .EXE? One that the users don't know the
name of, it seems? Security by obscurity isn't good security at all,
but it's not OpenVMS's fault when somebody tries to use it.

> I think it would be morally irresponsible of me to detail any more 
> of the flaws in this medium, but if anyone wants to contact me via 
> email I shall take the request into consideration.  Maybe DEC will 
> see this and ask me about my other ideas... :)

Maybe... please post some more. (See disclaimer below.)

Even if what you say above is true, and users can copy .EXE files, how
is that a security flaw?

PJDM
--
Peter Mayne
Digital Equipment Corporation (Australia)
Canberra, ACT
----
These are my opinions, and have nothing to do with Digital.
The truth is out there, but not necessarily in here.




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

* Re: Possible VMS Security Flaws
       [not found] ` <42oa2p$pui@news.arc.nasa.gov>
@ 1995-09-08  4:00   ` Bob Christenson
  1995-09-13  4:00     ` N. Rieck
  1995-09-11  4:00   ` Antonio Carlini
  1995-09-11  4:00   ` Brian Reed
  2 siblings, 1 reply; 10+ messages in thread
From: Bob Christenson @ 1995-09-08  4:00 UTC (permalink / raw)


dgahling@cycor.ca (Dan Gahlinger) writes:
}For more than 10 years now (since 1982) I have known about a flaw
}in the VMS security.  

[SNIP]

After reading the post, you haven't a clue about any serious flaw in VMS
security.

[SNIP the rest of the totally WRONG spewing]

}I think it would be morally irresponsible of me to detail any more 
}of the flaws in this medium, but if anyone wants to contact me via 
}email I shall take the request into consideration.  Maybe DEC will 
}see this and ask me about my other ideas... :)

What is morally irresponsible, is for you to post incorrect information. Since
what you posted exhibits a fairly complete LACK of correct understanding of VMS
protection, why should Digital bother to contact you except to correct your
delusional ramblings ... 8^(




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

* Re: Possible VMS Security Flaws
  1995-09-07  4:00 Possible VMS Security Flaws Dan Gahlinger
  1995-09-07  4:00 ` "Alan Winston - SSRL Admin Cmptg Mgr"
@ 1995-09-08  4:00 ` Jamie Hanrahan, Kernel Mode Systems
  1995-09-08  4:00 ` Peter Mayne
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Jamie Hanrahan, Kernel Mode Systems @ 1995-09-08  4:00 UTC (permalink / raw)


In article <42mta6$ikd@bud.peinet.pe.ca>, dgahling@cycor.ca (Dan Gahlinger)
 writes:
> I'll give you an example of what I'm talking about.  In VMS, when 
> you give access to a program, to run it, they need R and E flags at 
> one of the four levels of security.  

Wrong.  They need only the E flag.  That's what "E" means.  E for 
execute.  

> However, this also means they 
> can read, type, copy, rename, and move the file.  

Read, type, and copy, yes.  (Who cares?  If they can run it, they are
"copying" it into their own address space.)  But renaming and
"moving", as you call it (which is just renaming to a different
directory) require DELETE access to the file.  This is a fairly recent
(5.0?) change. 

Renaming (or deleting) the file also requires write access to the
directory the file is in, and this has ALWAYS been the case... In fact
it was that way on ODS-1 under RSX-11M! 

> One hint I can give system admins is a little trick I learned years 
> ago, and that is, you can flag a DIRECTORY as E (without the R) and 
> users can still run and read or write files IF they know the 
> SPECIFIC file spec (complete). 

This was implemented and documented "years ago".  (3.x, I believe.) 
What's the big revelation here? 

> I have been a long time DEC PDP and VAX user (since 1976) and have 
> always loved the VMS operating system.  I have spent several years 
> at the administrative level of VAX operations (on 730, 750, 780, 
> 782, 8600, MicroVax II, and MicroVax 2000).

Then maybe you should learn a little more about it?  No wonder DEC 
paid no attention to you -- based on what you've written here, you've 
no idea what you're talking about.  
 
(p.s.:  On VMS we call them "system managers", not "admins".)

	--- Jamie Hanrahan, Kernel Mode Systems, San Diego CA
drivers, internals, networks, applications, and training for VMS and Windows NT
uucp protocol weenie and release coordinator, VMSnet (DECUS uucp) Working Group
Internet: jeh@cmkrnl.com (JH645)  CompuServe: 74140,2055  



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

* Re: Possible VMS Security Flaws
  1995-09-07  4:00 Possible VMS Security Flaws Dan Gahlinger
                   ` (3 preceding siblings ...)
  1995-09-09  4:00 ` Possible VMS Security Flaws (NOT) Jasper Rees - Oxford University
@ 1995-09-09  4:00 ` Stephen Hoffman
       [not found] ` <42oa2p$pui@news.arc.nasa.gov>
  5 siblings, 0 replies; 10+ messages in thread
From: Stephen Hoffman @ 1995-09-09  4:00 UTC (permalink / raw)



In article <42mta6$ikd@bud.peinet.pe.ca>, dgahling@cycor.ca
(Dan Gahlinger) writes:

:For more than 10 years now (since 1982) I have known about a flaw
:in the VMS security.  I have contacted DEC about it (several offices 
:local to me) but they didn't seem interested.  I last tested it 
:about three years ago, and found the flaw is still present.  I have 
:also made requests to DEC several times about security enhancements, 
:but they also did not seem interested in those.  Perhaps the 
:security system has changed...
<snip>
:I'll give you an example of what I'm talking about.  In VMS, when 
:you give access to a program, to run it, they need R and E flags at 
:one of the four levels of security...
<snip>
:One hint I can give system admins is a little trick I learned years 
:ago, and that is, you can flag a DIRECTORY as E (without the R) and 
:users can still run and read or write files IF they know the 
:SPECIFIC file spec (complete).
<snip>
:I think it would be morally irresponsible of me to detail any more 
:of the flaws in this medium, but if anyone wants to contact me via 
:email I shall take the request into consideration.  Maybe DEC will 
:see this and ask me about my other ideas... :)

  Interesting -- I was under the impression that the `execute-only'
  access had been documented, supported and intended behaviour for
  quite some time -- I just checked, and this is covered in the Guide
  to OpenVMS System Security manual.  "With a directory file, execute
  access gives you the right to look up files whose names you know."
  (See chapters 4 and 5 for the details.) 

  Security around new version creation and similar was changed at V6.0,
  and now access is generally required to the lower version -- to match
  what is being done to create the higher version.  (One needs write
  access to the lower version to supercede a file -- one is effectively
  overwriting the old version.  With write access to a directory file,
  one can create or delete directory entries.)

  As I have commented in the past, if you believe you have encountered
  a security flaw in OpenVMS, please contact Digital's customer support
  center directly.  Or if you would like to discuss specifics, I can
  forward e-mail directly along to the engineers working on the OpenVMS
  system security components.

  ------------------------------ Opinionative -------------------------------
   Stephen Hoffman      OpenVMS Engineering      hoffman@xdelta.enet.dec.com
  ---------------------------------------------------------------------------




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

* Re: Possible VMS Security Flaws (NOT)
  1995-09-07  4:00 Possible VMS Security Flaws Dan Gahlinger
                   ` (2 preceding siblings ...)
  1995-09-08  4:00 ` Peter Mayne
@ 1995-09-09  4:00 ` Jasper Rees - Oxford University
  1995-09-09  4:00 ` Possible VMS Security Flaws Stephen Hoffman
       [not found] ` <42oa2p$pui@news.arc.nasa.gov>
  5 siblings, 0 replies; 10+ messages in thread
From: Jasper Rees - Oxford University @ 1995-09-09  4:00 UTC (permalink / raw)


In article <42mta6$ikd@bud.peinet.pe.ca>, dgahling@cycor.ca (Dan Gahlinger) writes:
> For more than 10 years now (since 1982) I have known about a flaw
> in the VMS security.  I have contacted DEC about it (several offices 
[...]

This guy is serious....??  right??? 

> I have been a long time DEC PDP and VAX user (since 1976) and have 
> always loved the VMS operating system.  I have spent several years 
> at the administrative level of VAX operations (on 730, 750, 780, 
> 782, 8600, MicroVax II, and MicroVax 2000).

Hsmm.... what is he trying to tell us I wonder...... :))

> Dan. (dgahling@cycor.ca)

jasper "I met the aliens too"



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

* Re: Possible VMS Security Flaws
       [not found] ` <42oa2p$pui@news.arc.nasa.gov>
  1995-09-08  4:00   ` Bob Christenson
@ 1995-09-11  4:00   ` Antonio Carlini
  1995-09-11  4:00   ` Brian Reed
  2 siblings, 0 replies; 10+ messages in thread
From: Antonio Carlini @ 1995-09-11  4:00 UTC (permalink / raw)



In article <42oa2p$pui@news.arc.nasa.gov>, wing@tgv.com ("Dan Wing") writes:
|>In article <42mta6$ikd@bud.peinet.pe.ca>, dgahling@cycor.ca (Dan Gahlinger) writes:
|>#For more than 10 years now (since 1982) I have known about a flaw
|>#in the VMS security.  
|>[...]
|>#I'll give you an example of what I'm talking about.  In VMS, when 
|>#you give access to a program, to run it, they need R and E flags at 
|>#one of the four levels of security.  
|>
|>No, a user only needs Execute access to execute a program (.EXE).  A user 
|>needs Read access to execute a DCL .COM file.
|>

Just a mnior nit: if you have E only access to a .COM procedure you can still
execute it. The only difference between E and R access is that with E access
DCL's verification setting is ignored so you cannot see the DCL statements being
echoed as they are executed. (This was introduced somewhere in the V4 timeframe,
1985 or 1986 as I recall).

[rest snipped]

|>
|>-Dan Wing, wing@tgv.com
|>

-- 
Antonio Carlini                            Mail: carlini@marvin.enet.dec.com
DECnet/OSI for OpenVMS Engineering
Digital Equipment Corporation              Worton Grange, Reading, England



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

* Re: Possible VMS Security Flaws
       [not found] ` <42oa2p$pui@news.arc.nasa.gov>
  1995-09-08  4:00   ` Bob Christenson
  1995-09-11  4:00   ` Antonio Carlini
@ 1995-09-11  4:00   ` Brian Reed
  2 siblings, 0 replies; 10+ messages in thread
From: Brian Reed @ 1995-09-11  4:00 UTC (permalink / raw)



In article <42oa2p$pui@news.arc.nasa.gov>, wing@tgv.com ("Dan Wing") writes:

>No, a user only needs Execute access to execute a program (.EXE).  A user 
>needs Read access to execute a DCL .COM file.

I don't think you need Read access to execute a .com file, either.  I
remember trying to debug one once, only set verify didn't display
the file--this was because I didn't have Read access.  It still executed
just fine.

-- 

Brian D. Reed
AT&T Columbus Works
Brian.D.Reed@att.com
614-860-6218



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

* Re: Possible VMS Security Flaws
  1995-09-08  4:00   ` Bob Christenson
@ 1995-09-13  4:00     ` N. Rieck
  0 siblings, 0 replies; 10+ messages in thread
From: N. Rieck @ 1995-09-13  4:00 UTC (permalink / raw)


There are no security flaws in VMS.  When VMS is first installed it has a
certain campus flavor but it's up to the system admin people to make
certain security changes based upon local requirements.  If you have
sensitive data that you wish to restrict access to, may have to change
directory/file access bits, owner UICs, or even incorporate ACLs (access
control lists).  It's your responsablility to turn this, not Digital's.

I have been involved in VMS systems admin since 1986 (RSX before that) and
it's always the UNIX guys down the hall who are bitching about breakins
and security violations. Ever read Cliff Stoll's "The Cuckos Egg"? The
whole thing is about UNIX breakins but there is a small bit at the end of
the book that talks about VMS breakins.  It seems that some people where
installing VMS and not changing the default passwords of some system
accounts.  The installation process now forces you to make these changes
and this minor problem has now been fixed (way back in VMS 5.0 I think).
Password history files and forced password changes in VMS have done more 
for security than anything else I can think of.  Happy Computing!



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

end of thread, other threads:[~1995-09-13  4:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-07  4:00 Possible VMS Security Flaws Dan Gahlinger
1995-09-07  4:00 ` "Alan Winston - SSRL Admin Cmptg Mgr"
1995-09-08  4:00 ` Jamie Hanrahan, Kernel Mode Systems
1995-09-08  4:00 ` Peter Mayne
1995-09-09  4:00 ` Possible VMS Security Flaws (NOT) Jasper Rees - Oxford University
1995-09-09  4:00 ` Possible VMS Security Flaws Stephen Hoffman
     [not found] ` <42oa2p$pui@news.arc.nasa.gov>
1995-09-08  4:00   ` Bob Christenson
1995-09-13  4:00     ` N. Rieck
1995-09-11  4:00   ` Antonio Carlini
1995-09-11  4:00   ` Brian Reed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox