Skip to content

Add phpinfo() to dangerous calls config

Compare
Choose a tag to compare
@spaze spaze released this 21 Apr 17:08
· 4 commits to main since this release
6d5ce7e

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, bypassing HttpOnly cookie flag), and use https://github.com/spaze/phpinfo instead of just calling phpinfo().

Internal changes

  • It's already a list, no need to call array_values() (#253, this is a new bleeding edge rule added in PHPStan 1.10.59)
  • Update dev dependencies (#254)