LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-31-2012, 10:48 AM   #1
Tarikc
Member
 
Registered: May 2009
Distribution: CentOS, RedHat, Ubuntu
Posts: 68

Rep: Reputation: 4
My HTTP Server gets probed, possible exploit?


Hello Gentlemen,

I don't know if this thing were posted here earlier, but I am panicked.

My Logwatch shows these writings in it:

Code:
A total of 1 sites probed the server 
   168.144.196.83

A total of 1 possible successful probes were detected (the following URLs
contain strings that match one or more of a listing of strings that
indicate a possible exploit):

   /?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D../../../../../../../../../../../../etc/passwd%00%20-n/?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D../../../../../../../../../../../../etc/passwd%00%20-n HTTP Response 200
It is showing that /etc/passwd, The http logs shows:

Code:
168.144.196.83 - - [30/Aug/2012:16:50:55 +0300] "POST /?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D../../../../../../../../../../../../etc/passwd%00%20-n/?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D../../../../../../../../../../../../etc/passwd%00%20-n HTTP/1.1" 200 22589 "-" "Mozilla/5.0"
It is showing POST??

Can someone please help me?? I checked the passwd file and it seems okay, nothing changed on it.

Looking forward to your replies.
 
Old 08-31-2012, 11:39 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Apart from that it's trying to append twice and it shows a 200 return code it shouldn't work anyway if the user the web server runs as has no write privileges on the file, and for the "/?-d" part see post http://www.linuxquestions.org/questi...4/#post4692267?
 
Old 09-01-2012, 05:19 AM   #3
Tarikc
Member
 
Registered: May 2009
Distribution: CentOS, RedHat, Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 4
Hello unSpawn,
Thank you for your reply.

So there will be nothing to be afraid of?
The web user has no write access of course...
 
Old 09-01-2012, 06:44 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
IMHO it's not a question of being afraid or not but thinking ahead and defending yourself:
- have your firewall drop accept bogon traffic and rate limits new requests,
- make your web server not expose any unused functionality (proxying, auth methods, etc) and configure only what is strictly necessary,
- make your web server more resilient by running mod_security with the default OWASP rule set,
- ensure that what off the shelf software you run is always current, including any 3rd party plugins, and remove what can't be updated,
- ensure you follow the security documentation off the shelf software provides,
- ensure that what homebrewn scripts you run follow best coding practices and have them examined if necessary,
- optionally monitor areas on your system the web server user can write to using Inotify and Maldetect.
*Examine your system for hardening other access vectors like running anonymous FTP, passworded FTP uploads from non-Linux machines, SSH without pubkey auth (as root?), etc, etc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logs Explaining: Worrying Server Log After Possible Attack (sites probed the server) amanacare Linux - Security 7 06-25-2012 04:06 PM
Wait IO suddenly extremely high (exploit ?), crashing the server gcat Linux - Security 18 04-18-2012 12:14 PM
A total of 1 sites probed the server elvisious Linux - Security 2 09-17-2009 07:21 AM
Apache server being probed for possible vulnerabilities crazyivan Linux - Security 4 05-24-2008 01:46 PM
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration