LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-25-2009, 08:56 PM   #1
mjenkins
Member
 
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Rep: Reputation: 15
badcred


does finding the username badcred in my webalizer logs mean that I have had my .htpasswd file hacked or does it mean someone tried to log in with bad credentials? I have google around for this a lot and can only find articles about bad credit
 
Old 02-27-2009, 09:02 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
post the actual logs lets see....
 
Old 02-27-2009, 09:15 AM   #3
mjenkins
Member
 
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chitambira View Post
post the actual logs lets see....
access_log:65.28.7.221 - badcred [24/Feb/2009:18:03:55 -0600] "GET / HTTP/1.0" 200 15441 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.1:65.28.7.101 - badcred [20/Feb/2009:13:18:17 -0600] "GET / HTTP/1.0" 200 15142 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.1:65.28.7.101 - badcred [20/Feb/2009:13:25:10 -0600] "GET / HTTP/1.0" 200 15142 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.2:65.28.7.167 - badcred [08/Feb/2009:15:39:16 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.2:65.28.7.167 - badcred [08/Feb/2009:15:59:22 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.2:65.28.7.167 - badcred [08/Feb/2009:16:19:29 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.3:65.28.7.144 - badcred [03/Feb/2009:00:34:02 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.3:65.28.7.144 - badcred [03/Feb/2009:01:14:29 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.3:65.28.7.144 - badcred [03/Feb/2009:01:34:35 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.3:65.28.7.144 - badcred [03/Feb/2009:17:36:10 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.3:65.28.7.144 - badcred [03/Feb/2009:18:54:04 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
access_log.3:65.28.7.144 - badcred [04/Feb/2009:04:40:04 -0600] "GET / HTTP/1.0" 200 15153 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
 
Old 02-27-2009, 10:27 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Whats your apache LogFormat configuration? check in your apache config.
If
it is something like:
LogFormat "%h %l %u %t \"%r\" %>s %b" common
then;
badcred is a username/userid of the person requesting the document as determined by HTTP authentication. The same value is typically provided to CGI scripts in the REMOTE_USER environment variable. If the status code for the request is 401, then this value should not be trusted because the user is not yet authenticated. If the document is not password protected, this entry is supposed to be "-"
In other words, its a bogus username and has no effect to your system.Its how the code(HTTP authentication) was developed and you don't have to worry about it.

Last edited by chitambira; 02-27-2009 at 10:36 AM.
 
Old 02-27-2009, 10:41 AM   #5
mjenkins
Member
 
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Original Poster
Rep: Reputation: 15
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

ok, so basically you are saying it means bad credentials!
it is just strange because i haven't seen that before...

Quote:
Originally Posted by chitambira View Post
Whats your apache LogFormat configuration? check in your apache config.
If
it is something like:
LogFormat "%h %l %u %t \"%r\" %>s %b" common
then;
badcred is a username/userid of the person requesting the document as determined by HTTP authentication. The same value is typically provided to CGI scripts in the REMOTE_USER environment variable. If the status code for the request is 401, then this value should not be trusted because the user is not yet authenticated. If the document is not password protected, this entry is supposed to be "-"
In other words, its a bogus username and has no effect to your system.Its how the code(HTTP authentication) was developed and you don't have to worry about it.
 
Old 04-17-2009, 03:48 PM   #6
etharp
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
what about the box doing the requesting?

while it may not have any effect on my server, is it an indication that a windows box at that IP may have been compromised?

192.168.0.199 - badcred [17/Apr/2009:16:34:33 -0400] "GET / HTTP/1.0" 200 178 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
192.168.0.199 - badcred [17/Apr/2009:16:14:26 -0400] "GET / HTTP/1.0" 200 178 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win32)"
 
Old 04-20-2009, 04:24 AM   #7
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Quote:
is it an indication that a windows box at that IP may have been compromised?
No, not in any way. This, in most cases, is simply a result of 'user on client not authenticated'
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:03 PM.

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