8.8
CWE
284
Advisory Published
Updated

CVE-2016-2049

First published: Mon Feb 01 2016(Updated: )

examples/consumer/common.php in JanRain PHP OpenID library (aka php-openid) improperly checks the openid.realm parameter against the SERVER_NAME element in the SERVER superglobal array, which might allow remote attackers to hijack the authentication of arbitrary users via vectors involving a crafted HTTP Host header.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Janrain PHP-OpenID

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2016-2049?

    The severity of CVE-2016-2049 is considered moderate due to its potential impact on user authentication.

  • How do I fix CVE-2016-2049?

    To fix CVE-2016-2049, ensure that the openid.realm parameter is properly validated against a safe list of allowed values instead of relying on the SERVER_NAME.

  • What software is affected by CVE-2016-2049?

    CVE-2016-2049 affects JanRain PHP OpenID library, also known as php-openid.

  • Can CVE-2016-2049 lead to remote attacks?

    Yes, CVE-2016-2049 can allow remote attackers to hijack user authentication if exploited.

  • Is there a workaround for CVE-2016-2049?

    A possible workaround for CVE-2016-2049 is to implement additional checks and secure configurations for the openid.realm parameter.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203