Honeynet Delineates Web Application Threats
An anonymous reader sends us to a technical white paper written by the Honeynet Project & Research Alliance: Know Your Enemy: Web Application Threats. Based on analysis of malware collected by the project, the paper outlines a number of HTTP-based attacks against web applications and some ways of protecting Web servers. Included are code injection, remote code-inclusion, SQL injection, cross-site scripting, and exploitation of the PHPShell application.
I swear sometimes that Slashdot articles follow my life. Just an hour ago I realized that some jackass had posted a link to a 5MB image on Bloomingpedia over 300 times in a comment he made on a myspace page. This was obviously an attempt to disrupt things either on Bloomingpedia or on the myspace page. So I decided to teach this jackass a lesson and use a rewrite rule that turns those image requests into humiliating messages about himself. Some people may have thought I went too far, and maybe that would be the case if he had posted just a few links to the image in his comment, but 300 is excessive. If you're going to do something like this, don't do it from your real account.
Based on analysis of malware collected by the project, the paper outlines a number of HTTP-based attacks against web applications and some ways of protecting Web servers.
chroot and run it as nobody?
Install mod_security?
Your hair look like poop, Bob! - Wanker.
I was thinking the same thing but then I thought, "What is there to say about this?" The answer appears to be nothing unless, like you, the reader has some relevant personal experience.
Web applet security is certainly an important matter, just not one that stirs up a great deal of controversy.
Or maybe like the science articles the subject flies over most heads. Just because it's called "news for nerds" doesn't mean that the majority have a nerds understanding. Now the YRO section is more illustrative of what slashdot has become.
Based on descriptions of the attacks in the article it looks like your general attacker is some kiddie that wields Google like a broad sword. Sure, they did have some attempts to recruit the honeypot into a bot net or set up a phishing attempt but most of the attacks just overwrote index (with text from a tutorial no less) or moved around in the file system. I didn't know the ratio of kiddies to people who know what their doing was so out of whack.
don't know where you got the numbers, I heard that only 2 F-22's we're silenced.
Well at least he didn't link to the goatse.cx image 300 times. The massive barfing would have been a D.O.S. on bathrooms everywere.
Web applet security is certainly an important matter, just not one that stirs up a great deal of controversy.
<voice="theatrical">Ohhh yes it does!</voice>
The three rules of running a web app you didn't write:
- 1: Subscribe to the announcements mailing list
- 2: Apply patches immediately
- 3: Back-up your shit regularly, because even if you do 1 and 2, you might get hit and then you're going to need your backups.
Rule three is sort of universal for any webmaster, whatever they're running, even if they wrote it all themselves and have security certifications up the wazoo. Not running back-ups is about as wise as putting your 401k funds into lottery tickets.- Greg
Start a happiness pandemic
It's a good article for people who aren't focusing on security professionally. It shouldn't be news to anybody who keeps up with trends, though -- is anyone really still using register_globals?!
Michal Zalewski pointed out a cute hack some years ago. Search engine spiders have to follow links that end in queries, like "toparticle.php?page=1". Barring extraordinary and ultimately impossible care in the coding of the spiders, they could also follow URLs that include attack code after the question mark. In _Silence on the Wire_, he imagined a crook building a long list of links to potentially vulnerable systems, appending attack code to each, and leaving the list someplace where Googlebot and its colleagues will find it. Googlebot could twist the doorknob on 1.5 million PHPBB systems a lot faster than the crook possibly could.
I dont want to start a flame war.. but here goes.
This is my fundamental issue behind open source. I much prefer custom applications for this reason. Lets face it, most of the open source web applications get about 10% of the functionality used. Under commercial use I would rather write customer apps to achieve this 10% than using open source with vulnerabilities. I know people will say patch. But lets face it, how many installations of un patched web apps are online at this minute.
I for one welcome our ursine overlords.
By The Web Application Security Consortium "From a counter-intelligence perspective, standard honeypot/honeynet technologies have not bared much fruit in the way of web attack data. Web-based honeypots have not been as successful as OS level or other honeypot applications (such as SMTP) due to the lack of their perceived value. Deploying an attractive honeypot web site is a complicated, time-consuming task. Other than a Script Kiddie probing for an easy defacement or an indiscriminant worm, you just won't get much traffic. So the question is - How can we increase our traffic, and thus, our chances of obtaining valuable web attack reconnaissance? This project will use one of the web attacker's most trusted tools against him - the Open Proxy server. Instead of being the target of the attacks, we opt to be used as a conduit of the attack data in order to gather our intelligence. By deploying multiple, specially configured open proxy server (or proxypot), we aim to take a birds-eye look at the types of malicious traffic that traverse these systems. The honeypot systems will conduct real-time analysis on the HTTP traffic to categorize the requests into threat classifications outlined by the Web Security Threat Classification and report all logging data to a centralized location." http://www.webappsec.org/projects/honeypots/
Believe me, if I started murdering people, there would be none of you left.
The Cross-site Request Forgery FAQ http://www.cgisecurity.com/articles/csrf-faq.shtml
Believe me, if I started murdering people, there would be none of you left.
Unfortunately I know about this all too well, the hard way.
;) Now *that* is some satisfying karma. :)
Take your eye off the ball and lose your server, it's as simple as that.
If you have a server with a lot of PHP applications running, you need to watch them all. I forgot about a CMS installation on my server that was being preserved for historical reasons (not even linked from the front page, but obviously visible to google), and sure enough, it got exploited via a remote inclusion attack and was used for nefarious perposes for a while without being noticing.
Checking the logs, the definite path of attack was a google for a known vunerable version of the CMS system, and then application of a perl script to perform the hack. Clearly the vunerable system goes into a database of known vunerable systems that gets shared, because to this day, despite the CMS system being backed up and taken offline, my server get attacks about once every 20 minutes from perl scripts targeting that CMS.
I also regularly see bots automatically filling in registration forms with spam, and wikis getting referrer comments added to them or even the content changed by bots.
Looking after even a smallish webserver has proven to be a royal pain in the proverbial.
Regarding PHPShell, I'd hope most people hash their password in the config file rather than leaving it plain-text, and also hide it away somewhere non-obvious (maybe behind another level of protection to keep the webcrawlers from spotting it). But even with hashed passwords, logging in still uses a plaintext password, and is thus equally vunerable to good old ftp and telnet password sniffing. The Joomla extension to provide a plugin PHPShell is a worrying development, and I'm sure will lead to more PHPShell discoveries on servers.
Really the only way to avoid being compromised if you have a semi-busy site, is to learn how to compromise websites yourself, and try it on your own site (and it also teachs you what to look out for in logs). This in combination with regular patching seems to be the best way to stay one step ahead.
And yes, keeping the evidence is good - it gets stupid kids kicked off their ISPs when you send them the proof.
biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
The Google Translate service now forwards the IP address of its users. Attackers still using the Google Translate service against the honeynet are exposing their source IP address.
Now this is something that is really getting on my nerves. In basically every security-related paper the author seems to imply that the IP she's seeing is the IP of the attacker. If "3133t-v1l41n" is attacking a machine, I consider "3133t-v1l41n" to be the attacker, not the last visible machine (to the defender) that the "3133t-v1l41n" attack used. That IP address is probably the IP address of a compromised Windows machine, probably accessed through another compromised machine and so on.
This is probably not the IP of the attacker. I'm tired of reading such nonsense in papers from supposedly security-aware people.
I created a /images php script that takes files like /image/header.png and sends the correct file. If it detects that the graphic is being loaded offsite (ie, MySpace), it sends goatse.