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] Security Advisory - phpBB 2.0.15 PHP-code injection bug |
|---|---|
| Date: | Wed, 29 Jun 2005 08:41:41 -0500 |
Why is this ability even present in PHP's regular expression functions? What kind of decision making concludes that regular expression functions should be able to execute inline code? I just can't get my head around this. Are there any other PHP functions that bizarrely mate EVAL ability with seemingly unrelated functions?
The highlighting code uses the preg_replace() function on line 1110 in viewtopic.php. It uses the special modifier "e" which causes PHP to evaluate the replacement string as PHP code. Below is a PHP code example of what actually happens:
_______________________________________________ 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] Solaris 9/10 ld.so fun, Przemyslaw Frasunek |
|---|---|
| Next by Date: | Re: [Full-disclosure] Mozilla Multiple Product JavaScript Issue, evilninja |
| Previous by Thread: | Re: [Full-disclosure] Security Advisory - phpBB 2.0.15 PHP-code injection bug, Andrew Farmer |
| Next by Thread: | [Full-disclosure] SEC-CONSULT SA-20050629-0, Bernhard Mueller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |