Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Web-App-Sec
[Top] [All Lists]

Re: Content monitorting in Application Security

Subject: Re: Content monitorting in Application Security
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)

<Prev in Thread] Current Thread [Next in Thread>