# Common-sense security hardening for the next PHP

- Thread: https://externals.io/message/133131
- Original archive: https://news-web.php.net/php.internals/133131
- Started by Morgan on 2026-11-20T00:15:01+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #133131 — Morgan — 2026-11-20T00:15:01+00:00

URL: https://externals.io/message/133131#133131

> 
> 1) Make it so that include() and require() can only load specific 
> extensions like ".php" and ".phar"
If an attacker can plant arbitrary files on your system where include() 
and require() will load them, then they can give those files whatever 
extension they like.
