HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- decoded aliases & Aliases with Pipes in sendmail.c...
Operating System - HP-UX
1830085
Members
13605
Online
109998
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-04-2009 06:53 AM
10-04-2009 06:53 AM
decoded aliases & Aliases with Pipes in sendmail.cf
hi,
could somebody give me an idea on decoded aliases & alises with pipes in /etc/mail/aliases
why is it a security threat if present??
How could find these decoded aliases & pipes..any command ??
regards,
chicuks
could somebody give me an idea on decoded aliases & alises with pipes in /etc/mail/aliases
why is it a security threat if present??
How could find these decoded aliases & pipes..any command ??
regards,
chicuks
- Tags:
- sendmail
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2009 07:20 AM
10-04-2009 07:20 AM
Re: decoded aliases & Aliases with Pipes in sendmail.cf
A quick google search of "sendmail decoded alises" yields:
http://www.faqs.org/docs/securing/chap22sec183.html
http://chargen.matasano.com/chargen/2009/5/6/this-old-vulnerability-sendmail-decode-alias.html
http://osvdb.org/show/osvdb/196
The theory behind the aliases with pipes is the same as the 'decode' alias since it pipes a message to a command.
You find these by looking in your /etc/mail/aliases file.
http://www.faqs.org/docs/securing/chap22sec183.html
http://chargen.matasano.com/chargen/2009/5/6/this-old-vulnerability-sendmail-decode-alias.html
http://osvdb.org/show/osvdb/196
The theory behind the aliases with pipes is the same as the 'decode' alias since it pipes a message to a command.
You find these by looking in your /etc/mail/aliases file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2009 07:21 AM
10-04-2009 07:21 AM
Re: decoded aliases & Aliases with Pipes in sendmail.cf
Hi:
The problem that you are asking about involves the '/etc/mail/aliases' and '${HOME}/.forward' files used with 'sendmail' and cousins. These files are not executed, but they may contain piped commands that ARE executed.
For example, creating a '.forward' file in the users ${HOME} directory is one way of setting up email forwarding.
Keep the permissions of the '.forward' file writable ONLY to its owner, though. To do otherwise is a security-hole since if I can write entries into your 'foward' file, then I can insert insidious scripts into it, like this piped open:
| /tmp/mybadthing
The above line in your '.forward' file would cause my '/tmp/mybadthing' to run, which might not be a good thing :-))
You could look for piped opens '|' in your configuration files --- 'foward' and alias files.
Regards!
...JRF...
The problem that you are asking about involves the '/etc/mail/aliases' and '${HOME}/.forward' files used with 'sendmail' and cousins. These files are not executed, but they may contain piped commands that ARE executed.
For example, creating a '.forward' file in the users ${HOME} directory is one way of setting up email forwarding.
Keep the permissions of the '.forward' file writable ONLY to its owner, though. To do otherwise is a security-hole since if I can write entries into your 'foward' file, then I can insert insidious scripts into it, like this piped open:
| /tmp/mybadthing
The above line in your '.forward' file would cause my '/tmp/mybadthing' to run, which might not be a good thing :-))
You could look for piped opens '|' in your configuration files --- 'foward' and alias files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2009 07:33 AM
10-04-2009 07:33 AM
Re: decoded aliases & Aliases with Pipes in sendmail.cf
Hi (again):
> How could find these decoded aliases & pipes..any command ??
I inferred the answer to this, but I suspect you need a more direct reply.
You could 'grep' for the pipe symbol. For example:
# find /home -type f -name .forward -exec grep '|' {} +
This assumes that your user's $(HOME) directories reside in '/home'. You should really parse your '/etc/passwd' file to find all paths to HOME directories.
Regards!
...JRF...
> How could find these decoded aliases & pipes..any command ??
I inferred the answer to this, but I suspect you need a more direct reply.
You could 'grep' for the pipe symbol. For example:
# find /home -type f -name .forward -exec grep '|' {} +
This assumes that your user's $(HOME) directories reside in '/home'. You should really parse your '/etc/passwd' file to find all paths to HOME directories.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP