Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



WebApp Sec: Re: Content monitorting in Application Security

Re: Content monitorting in Application Security

From: Ivan Ristic <ivanr_at_webkreator.com>
Date: Sat, 08 Jan 2005 00:13:54 +0000

Alfred Hitchcock wrote:
>
> Hi All,
> I have a major doubt it would be of great help if anybody can provide solution to this.
> I have a web page which allows to upload files such as jpeg and html files.
> Is there any mechanisms which can detect malicious html files. E.g. if a html page has got a malicious java script such as alert('xss') then how can we check these things. One more point to be noted here is that uploading of file can be done by any user.

   Why don't you modify your web page/application to analyze the files
   that are being uploaded? For HTML, one option is to use simple keyword
   search to detect malicious stuff. But a better approach is to
   decompose/parse HTML and then pick up only the elements you know are
   safe (e.g. leave out the Javascript altogether).

   On a web server level, mod_security can intercept and inspect files
   before they reach the application. This can come in handy if you need
   to enforce a site-wide policy or if you can't change the application
   for some reason.

-- 
Ivan Ristic (http://www.modsecurity.org)
Received on Jan 09 2005
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]