GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Root cause of CVE-2025-47776 vulnerability: Use of == instead of === to compare password hashes.

Download link

https://media.infosec.exchange/infosec.exchange/media_attachments/files/115/474/477/612/174/308/original/ee8cbaf2c8da7b9e.png

Notices where this attachment appears

  1. Embed this notice
    Harry Sintonen (harrysintonen@infosec.exchange)'s status on Sunday, 02-Nov-2025 00:35:20 JST Harry Sintonen Harry Sintonen

    Several months ago, I found a #vulnerability from #MantisBT - Authentication bypass for some passwords due to PHP type juggling (CVE-2025-47776).

    Any account that has a password that results in a hash that matches ^0+[Ee][0-9]+$ can be logged in with a password that matches that regex as well. For example, password comito5 can be used to log in to the affected accounts and thus gain unauthorised access.

    The root cause of this bug is the incorrect use of == to match the password hash:

    if( auth_process_plain_password( $p_test_password, $t_password, $t_login_method ) == $t_password )

    The fix is to use === for the comparison.

    This vulnerability has existed in MantisBT ever since hashed password support was added (read: decades). MantisBT 2.27.2 and later include a fix to this vulnerability. https://mantisbt.org/download.php

    #CVE_2025_47776 #infosec #cybersecurity

    In conversation about 10 months ago from infosec.exchange permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.