- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSRT3618 Security Vulnerability in HP-UX shell...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:00 AM
08-27-2003 04:00 AM
SSRT3618 Security Vulnerability in HP-UX shells
A security bulletin has been issued:
-----------------------------------------------------------------
Source: HEWLETT-PACKARD COMPANY
SECURITY BULLETIN: HPSBUX0308-275
Originally issued: 26 August 2003
SSRT3618 Security Vulnerability in HP-UX shells
-----------------------------------------------------------------
To access the bulletin from the itrc:
Select "maintenance and support"
Select "search technical knowledge base"
Select "HP-UX Software Security Bulletins"
Select "Search by Security Bulletin Number"
Enter "HPSBUX0308-275"
Search
The complete list of security bulletins can be found here:
http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSecurityBulletin
=================================================================
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:04 AM
08-27-2003 04:04 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
Cheryl beat you to it:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xca755a744468af429789b937ca5fbd9b,00.html
And I have to admit that I like the way she documented it better.
Sorry I missed you in Atlanta!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:22 AM
08-27-2003 04:22 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
Since the shell issue affects everyone, this bulletin needs maximum exposure so that everyone obtain the patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:25 AM
08-27-2003 04:25 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:28 AM
08-27-2003 04:28 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:29 AM
08-27-2003 04:29 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:34 AM
08-27-2003 04:34 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
The description in the bulletin is rather vague. Could you expand on it at all?
For instance, how could "Improper error checking of various sytem calls" allow an exploit? And is "name based on a process id" part of the problem?
Thanks,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:38 AM
08-27-2003 04:38 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
All I can give you is what I found on the cert site:
When performing the "<<" redirection, /bin/sh creates a temporary file in /tmp with a name based on the process id, writes subsequent input out to that file, and then closes the file before re-opening it as the standard input of the command to be executed. At no stage are the results of the creat(), write(), or open() calls checked for an error status.
II. Impact
It is possible for another user to alter what is read from this file.
If the sticky bit is not set on /tmp, the file can be simply removed, and a new file created in its place
If the sticky bit is set, then it is possible to guess what the file will be called and create it before /bin/sh does (the creat() call performed by the shell does not result in an open() call with O_EXCL set) and hence it is possible to maintain a handle on the underlying file.
If a fifo is created in place of the temporary file it is particularly easy to insert an extra command into the input transparently, and without having to worry about ensuring the bug is exploited during the narrow window of time in which it occurs.
Even without reading, creating this file may block the execution of commands using the << operator.
It may also be possible to create a symbolic link named as the temporary file and pointed to any other file on the system writable by the user of the shell, which may lead to corruption of the file to which the link is pointed.
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 04:47 AM
08-27-2003 04:47 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
Thanks Berlene - makes perfect sense.
I wonder if you might encourage your staff to possibly include more of the CERT details into it's bulletins? Then we wouldn't have to surf to the CERT site for them.
Thanks,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 05:03 AM
08-27-2003 05:03 AM
Re: SSRT3618 Security Vulnerability in HP-UX shells
Tks
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 11:42 PM
08-27-2003 11:42 PM
Re: SSRT3618 Security Vulnerability in HP-UX shells
causing denial of service, I think I may have come across another scenario
where this happens, even with PHCO_27345, 27019, 26561.
The problem is in the thread "11i boot: auto_parms[1589]: /tmp/sh##.###:" in
the HPUX System Administration forum.
Not fully resolved - and I'll have to suspend investigation for a week as we're
shipping some of the boxes - but what i suspect is happening is that the shell
is trying to create a temp file so that it can source a start-up script, is starting
with /tmp/sh76.1 and running throug hto /tmp/sh76.113 then baling out
(another system, got failure at /tmp/sh81.113). I think the reason the files
accumulate is that one of the sourced scripts mounts local filesystems, so
/tmp is used as a mount point and the temp file can't be deleted from the /tmp
directory on the root FS.
N.B. Further investigation is needed - other explanations are being
considered -see thread for more info - but I'll have to wait a few days before
continuing.