Skip to content

Security: DotEnv loads DB password plaintext in $_SERVER #1969

Description

@MGatner

This might be considered and decided upon already, but I was surprised when I ran phpinfo() to check extensions that it includes Environment values and thus, my database password (in plaintext). Technically $_SERVER and environment variables should never be exposed, but practically there are a lot of stray calls to phpinfo() which normally isn't ideal but doesn't display anything so compromising as DB connection info.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions