Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/1Panel-dev/1Panel
  4. ›
  5. CVE-2024-30257

CVE-2024-30257: 1Panel's password verification is suspected to have a timing attack vulnerability

April 18, 2024 (updated February 11, 2025)

源码中密码校验处使用 != 符号,而不是hmac.Equal,这可能导致产生计时攻击漏洞,从而爆破密码。 建议使用 hmac.Equal 比对密码。

Translation:

The source code uses the != symbol instead of hmac.Equal for password verification, which may lead to timing attack vulnerabilities that can lead to password cracking. It is recommended to use hmac. Equal to compare passwords.

References

  • github.com/1Panel-dev/1Panel
  • github.com/1Panel-dev/1Panel/blob/dev/backend/app/service/auth.go
  • github.com/1Panel-dev/1Panel/security/advisories/GHSA-6m9h-2pr2-9j8f
  • github.com/advisories/GHSA-6m9h-2pr2-9j8f
  • nvd.nist.gov/vuln/detail/CVE-2024-30257

Code Behaviors & Features

Detect and mitigate CVE-2024-30257 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.10.3

Fixed versions

  • 1.10.3

Solution

Upgrade to version 1.10.3 or above.

Impact 3.9 LOW

CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-203: Observable Discrepancy

Source file

go/github.com/1Panel-dev/1Panel/CVE-2024-30257.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.