---
id: CVE-2024-30257
aliases:
  - GHSA-6m9h-2pr2-9j8f
  - GO-2024-2734
title: >-
  1Panel's password verification is suspected to have a timing attack
  vulnerability
summary: >-
  1Panel's password verification is suspected to have a timing attack
  vulnerability
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: 1Panel-dev
product: github.com/1Panel-dev/1Panel
ecosystem: go
affected:
  - github.com/1Panel-dev/1Panel < 1.10.3
patched:
  - github.com/1Panel-dev/1Panel 1.10.3
published: '2024-04-18'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:11.157014720Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6m9h-2pr2-9j8f'
references:
  - url: >-
      https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-6m9h-2pr2-9j8f
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-30257'
  - url: 'https://github.com/1Panel-dev/1Panel'
  - url: >-
      https://github.com/1Panel-dev/1Panel/blob/dev/backend/app/service/auth.go#L81C5-L81C26
tags:
  - osv
  - go
epss: 0.0038
epssPercentile: 0.29271
ingestedAt: '2026-09-12T03:13:01.759Z'
---

## Overview

### Summary
源码中密码校验处使用 != 符号，而不是`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.

### Details
https://github.com/1Panel-dev/1Panel/blob/dev/backend/app/service/auth.go#L81C5-L81C26

### Impact
该产品的所有使用者。

Translation:

All users of this product.

## Affected packages

- `github.com/1Panel-dev/1Panel < 1.10.3`

## Remediation

Upgrade to a patched release:

- `github.com/1Panel-dev/1Panel 1.10.3`
