Great Circle Associates Firewalls
(November 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Secure Programming Techniques
From: dhami @ mdd . comm . mot . com (Mandeep S Dhami)
Date: Fri, 11 Nov 94 20:59:56 PST
To: firewalls @ greatcircle . com

Hi Pat,

> From: matt @
 uts .
 EDU .
 AU (Jas (Matthew K))
> 	C in and of itself is neither secure nor insecure. what makes "C
> programming" (in)secure is a combination of the OS you are running and the
                                                  ^^^^^^^^^^^^^^^^^^
> libraries you use to do things within that OS.
  ^^^^^^^^^^^^^^^^^

| From patrick @
 oes .
 amdahl .
 com (Patrick Horgan)
| ...
| system and popen in setuid applications (or at least making sure you push
| an intelligent PATH and IFS into the environment first?)  If you have to 
| use system or popen and the string you use is derived from user input, how
| about scanning for the first ';' and replacing it with '\0'?  ...

Your points is exactly what Mat is saying! IFS/PATH are UNIX specific.
And popen() and buffer etc. are library specific (libc.a in UNIX). I am
sure requirements differ for DOS/VMS/etc. It is NOT your C habits which
makes programs secure ... it is your OS/library usage.

Regards,
Mandeep
------------------------------------------------------------------------------

Indexed By Date Previous: Getting Root on Sidewinder (fwd)
From: tom @ pserv1 . dot . state . az . us (Tom Brink)
Next: Re: Encryted email
From: NetSurfer <jdwilson @ gold . chem . hawaii . edu>
Indexed By Thread Previous: Re: Secure Programming Techniques
From: patrick @ oes . amdahl . com (Patrick Horgan)
Next: Re: Secure Programming Techniques
From: koellner @ ErlH . Siemens . DE (RICHARD KOELLNER)

Google
 
Search Internet Search www.greatcircle.com