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. |

| Subject: | Re: [Full-disclosure] strip_tags() but not only vulnerability |
|---|---|
| Date: | Thu, 30 Mar 2006 02:22:08 +0200 |
Tõnu Samuel wrote:
Many websites are still vulnerable and similar problems happen not depending on programming language too often: http://www.jes.ee/~tonu/strip.php
yes, if you use strip_tags() with the whitelist argument the whitelisted tag can be misused.. the php manual warns you about this, so no news.. note that strip_tags() isn't the right function to use against xss (use regexpr, htmlentities() or htmlspecialchars() instead) the solution is: $foo = htmlentities(strip_tags($foo)); or just: $foo = htmlentities($foo); if you need to "white list" some tags use an alias (like [b]bold[/b], etc) and then str_replace (as done by many web applications) tonu: imho this thread is well suited for webappsec but not for fd or bt, also can you remove the word "vulnerability" from the subject of this type of mails? don't misunderstand me, i like informative mails and yours efforts, just post on the right mailing list : ) regards, ascii, http://www.ush.it _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Full-disclosure] Java integer overflows (was: a really long topic), KF (lists) |
|---|---|
| Next by Date: | Re: [Full-disclosure] Phish Registry, n3td3v |
| Previous by Thread: | [Full-disclosure] strip_tags() but not only vulnerability, Tõnu Samuel |
| Next by Thread: | [Full-disclosure] ExplorerXP : Directory Traversal and Cross Site Scripting, Jerome Athias |
| Indexes: | [Date] [Thread] [Top] [All Lists] |