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: Fri, 7 Jan 2005 19:21:46 -0500 (EST)
On 7 Jan 2005, 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.

Aside from the standard response of 'do not allow uploading of HTML files' 
to prevent possible malicious code execution, another option is to 
disallow any server side script parsing like PHP and CGI.  The second 
option should limit the code to client side parsing only, which brings us 
back to the topic of malicious Javascript execution (or other such client 
side code).

One possible programmatic option is to run a regex filter against the file 
that is uploaded to strip out or hide the javascript code before it is 
saved to your filesystem.  

If there is a more interesting solution to this I would love to learn 
about it.  I personally do not allow such files to be uploaded.

-- 
Regards,

Paul Laudanski - Computer Cops, LLC. CEO & Founder
CastleCops(SM) - http://castlecops.com
Promoting education and health in online security and privacy.


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