You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for reasons why (phpinfo() echoes cookie values like the session id, which may then be stolen with XSS for example, bypassing HttpOnly cookie flag), and use https://github.com/spaze/phpinfo instead of just calling phpinfo().
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Add
phpinfo()
to dangerous calls config (#255)See
for reasons why (
phpinfo()
echoes cookie values like the session id, which may then be stolen with XSS for example, bypassingHttpOnly
cookie flag), and use https://github.com/spaze/phpinfo instead of just callingphpinfo()
.Internal changes
array_values()
(It's already a list, no need to callarray_values()
#253, this is a new bleeding edge rule added in PHPStan 1.10.59)This discussion was created from the release Add phpinfo() to dangerous calls config.
Beta Was this translation helpful? Give feedback.
All reactions