Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
trebor
on June 4, 2015
|
parent
|
context
|
favorite
| on:
PCRE Heap Overflow in Regex Processing Lets Users ...
Anyone compiling regex strings in PHP from user input should take care to use preg_quote():
http://php.net/manual/en/function.preg-quote.php
Otherwise, you're in risky business trusting what a user could send you.
0x0
on June 4, 2015
[–]
Especially since you could otherwise inject "/e" which turns the whole thing into an eval() !
Sophistifunk
on June 5, 2015
|
parent
[–]
SERIOUSLY!? eval() from regexes!?
Jebus... Just burn it all down, we're screwed.
developer1
on June 5, 2015
|
root
|
parent
[–]
From the documentation for regex modifiers: "DEPRECATED as of PHP 5.5.0 and REMOVED as of PHP 7.0.0". Not for much longer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: