- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- anonymous ftp/pub cracked on HP-UX
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
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
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
тАО01-21-2003 06:22 AM
тАО01-21-2003 06:22 AM
Do I only need to configure the /etc/ftpd/ftphosts and /etc/ftpd/access to deny NinjaTune from dumping some rather offending files in the anonymous pub sub-directory. I'm still puzzled as to how it was able to run commands in the pub sub-dir which is not world writable. Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 06:54 AM
тАО01-21-2003 06:54 AM
Re: anonymous ftp/pub cracked on HP-UX
First, if you have annonymous AND standard FTP enabled you will have much more difficulty in determining the problem.
I have public and secure servers and never both on the same machine.
Next, if there is a particular host dumping stuff into a directory, then it's a better bet to dis-allow the connection at inetd instead of ftpd.
vi /var/adm/inetd.sec
ftpd deny somehost someotherhost etc...
man inetd.sec for more information.
Lastly, if this is a hack/tool that allows a shell to your system, you need to get up to date on patches. If you are completely up to date with patches concerning wu-ftpd or fort-knox (depending on your HP-UX version) then contact HP Support and get bugs submitted. Disable the FTP server until a bug fix is available to protect yourself.
If you give a more technical description of the issues, it's easier for us to assist you!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 07:10 AM
тАО01-21-2003 07:10 AM
Re: anonymous ftp/pub cracked on HP-UX
Anonymous access (especially access that allows writes) can cause misery.
Check file/directory perms first. The world bit doesn't necessarily control access in anonymous - check the group to which the user ftp belongs. If any dirs have write access for ftp or ftp's group, then folks will be able to create files and directories when they log in anonymously.
ftpaccess (man ftpaccess) allows some fairly fine grained access control. See
http://www.wu-ftpd.org
for examples on ftpaccess,ftphost configs and directives.
Unix perms are the rule. There are directives to complement and further restrict Unix perms based on class (e.g. chmod, umask, delete, overwrite, rename, dirs, nodirs).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 07:14 AM
тАО01-21-2003 07:14 AM
Re: anonymous ftp/pub cracked on HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 07:31 AM
тАО01-21-2003 07:31 AM
Re: anonymous ftp/pub cracked on HP-UX
The /home/ftp is root owned (755). /home/ftp/pub is root:www (755). I did check the documentation of setting permissions for anonymous ftp sub-dirs and all checks out ok. Since I no longer have an incoming sub-dir for anonymous ftp, should I remove all entries in the /home/ftp/etc/passwd except for root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 07:41 AM
тАО01-21-2003 07:41 AM
Re: anonymous ftp/pub cracked on HP-UX
This file simply gives name identity to files instead of UID and GID numbers. Even then this may not be true if you chroot your anonymous ftp ID which you should be doing.
wu_ftpd will auth off your normal passwd file. I'd really suggest that you do a bit of homework and get this right. Mixing anon and real FTP is a huge problem, in that it is terribly difficult to see where your oversights/fixes need to be.
I have a guide I wrote a long time ago on some of the chroot and necessities of setting up anonymous ftp. I'll try to convert it to html and post it if you have need.
Really though, get up to date on all patches as soon as possible. To avoid further hacks/hacking disable ftp until all possible security patches are installed.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 07:56 AM
тАО01-21-2003 07:56 AM
Re: anonymous ftp/pub cracked on HP-UX
This is possible with changes to the files above. I was lazy and used the Bastille tool to do it for me.
To things to check here.
security_patch_check
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=B6834AA&date=
This guy connects to HP analyzes your machine and lets you know how many patches you need to be current.
Bastille
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=B6849AA&date=
They will tone up all your security indluding ftp.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 08:16 AM
тАО01-21-2003 08:16 AM
SolutionI have 3 articles regarding HP-UX FTP. One is on using anon FTP and creating a restricted FTP user:
http://newfdawg.com/SHP-Articles.htm
As others have mentioned, just one little misconfiguration or a missing patch and access is opened.
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 08:40 AM
тАО01-21-2003 08:40 AM
Re: anonymous ftp/pub cracked on HP-UX
As for using the 'guy' I believe I need HP Software support for that useage and, someone here decided when contract renewal came-up that wasn't really required.