473,698 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Odd error from one ip address only

I am having an odd problem. Every day I get application errors from my
website. The errors are only from one particular ip address (The error is
System.NullRefe renceException: Object reference not set to an instance of an
object....) The logs show that the request appear to be coming from some
kind of spider or bot. They have no url referrer and are the order of the
pages requested could not be "clicked" in the order requested. They all fail
at the same point. Here is the error message and a snip of the code.

Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
System.NullRefe renceException: Object reference not set to an instance of an
object.
at mgFunctions.mgS etCookies(Strin g stroID)
at mgDisplay.Page_ Load(Object sender, EventArgs e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Code snip.

Sub Page_Load(sende r As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QuerySt ring.Item("_o") <> string.empty then
stroID = Request.QuerySt ring.Item("_o") .tostring()
end if
mgFunctions.mgS etCookies(stroI D)

end if
It seems like the application doesn't know what mgFunctions.mgS etCookies is
for this particular user only. Could this user be doing something malicious?

I am getting 30 or 40 errors a day just from this one user, but no other.
Any thoughts?

Mike
Apr 5 '06 #1
7 1245
I suspect it is malicious, but automated. Probably some script kiddies
running and automated exploit scanner or some malware infected server doing a
similar thing. Look at the server logs for any publicly available web server
and you get this sort of thing all the time.

"newsgroups.com cast.net" wrote:
I am having an odd problem. Every day I get application errors from my
website. The errors are only from one particular ip address (The error is
System.NullRefe renceException: Object reference not set to an instance of an
object....) The logs show that the request appear to be coming from some
kind of spider or bot. They have no url referrer and are the order of the
pages requested could not be "clicked" in the order requested. They all fail
at the same point. Here is the error message and a snip of the code.

Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
System.NullRefe renceException: Object reference not set to an instance of an
object.
at mgFunctions.mgS etCookies(Strin g stroID)
at mgDisplay.Page_ Load(Object sender, EventArgs e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Code snip.

Sub Page_Load(sende r As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QuerySt ring.Item("_o") <> string.empty then
stroID = Request.QuerySt ring.Item("_o") .tostring()
end if
mgFunctions.mgS etCookies(stroI D)

end if
It seems like the application doesn't know what mgFunctions.mgS etCookies is
for this particular user only. Could this user be doing something malicious?

I am getting 30 or 40 errors a day just from this one user, but no other.
Any thoughts?

Mike

Apr 5 '06 #2
I would advice to ignore that

Those robots do some weird things, submit form with bad parameters (or no
parameters) .....

If you are tired of the error just ban it.

George.
"newsgroups.com cast.net" <Mi************ ****@noZorY.geZ waYrrenY.com> wrote
in message news:0q******** *************** *******@comcast .com...
I am having an odd problem. Every day I get application errors from my
website. The errors are only from one particular ip address (The error is
System.NullRefe renceException: Object reference not set to an instance of
an
object....) The logs show that the request appear to be coming from some
kind of spider or bot. They have no url referrer and are the order of the
pages requested could not be "clicked" in the order requested. They all
fail
at the same point. Here is the error message and a snip of the code.

Exception of type 'System.Web.Htt pUnhandledExcep tion' was thrown.
System.NullRefe renceException: Object reference not set to an instance of
an
object.
at mgFunctions.mgS etCookies(Strin g stroID)
at mgDisplay.Page_ Load(Object sender, EventArgs e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct
sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Code snip.

Sub Page_Load(sende r As Object, e As EventArgs)
if not Ispostback then
dim stroID as string = "u"
if Request.QuerySt ring.Item("_o") <> string.empty then
stroID = Request.QuerySt ring.Item("_o") .tostring()
end if
mgFunctions.mgS etCookies(stroI D)

end if
It seems like the application doesn't know what mgFunctions.mgS etCookies
is
for this particular user only. Could this user be doing something
malicious?

I am getting 30 or 40 errors a day just from this one user, but no other.
Any thoughts?

Mike

Apr 5 '06 #3
Don't forget that most spiders do not accept cookies.
Have you tried connecting to your site using a browser that doesn't
support cookies?
Perhaps mgFunctions.mgS etCookies() should check the value of
Request.Browser .Cookies before trying to get/set them

Apr 6 '06 #4

"Jason Hales" <ja*********@ya hoo.com> wrote in message
news:11******** *************@v 46g2000cwv.goog legroups.com...
Don't forget that most spiders do not accept cookies.
Have you tried connecting to your site using a browser that doesn't
support cookies?
Perhaps mgFunctions.mgS etCookies() should check the value of
Request.Browser .Cookies before trying to get/set them

I have tried that with no problem. The function does check for the existence
of the cookie. Also, many users browse with no cookies and I don't get any
errors. I suspect the bot is doing something is shouldn't be. It is coming
from
aplacecalledAbo venet_Communica tions_Inc.

Mike
Apr 6 '06 #5
That's stumped me. It might help to post up some code for
mgFunctions.mgS etCookies

Jason

Apr 7 '06 #6
I also am having the same problem and the problem am having is in this line
"Request.QueryS tring.Item("_o" ) <> string.empty "

that if the Request.QuerySt ring.Item("_o") = null then this exception appears. That means that if the previous page is not submitting anthing in the query string then the error is generated.
Apr 21 '06 #7
I also am having the same problem and the problem am having is in this line
"Request.QueryS tring.Item("_o" ) <> string.empty "

that if the Request.QuerySt ring.Item("_o") = null then this exception appears. That means that if the previous page is not submitting anthing in the query string then the error is generated.
Apr 21 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
8456
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order by VisitDt" I'm getting this error message: Errno is 2465. Err.description is "Can't find field '|' referred to in your expression"
8
21910
by: Grant Richard | last post by:
Using the TcpListener and TcpClient I created a program that just sends and receives a short string - over and over again. The program is fine until it gets to around 1500 to 1800 messages. At that time, I get a SocketException with the message "Only one usage of each socket address (protocol/network address/port) is normally permitted". This happen if you use localhost or between two distinct computers. And, for a period of time after the...
0
3540
by: iKiLL | last post by:
Hi All Code Below for this problem ERROR: "An existing connection was forcibly closed by the remote host"
10
6971
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
8668
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8855
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7708
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.