Vulnerabilities in pkg:golang/github.com/IceWhaleTech/CasaOS-UserService

PACKAGE
Advisory Identifier: GHSA-c69x-5xmw-v44x
Advisory Summary

CVE-2024-24767 is a HIGH (CVSS 7.3) casaos improper restriction of excessive vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Github.com/IceWhaleTech/CasaOS UserService libraries in the Go ecosystem. The issue involves casaos improper restriction of excessive authentication attempts vulnerability. Remediation is available by upgrading affected packages to version 0.4.7.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/IceWhaleTech/CasaOS-UserService

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/IceWhaleTech/CasaOS-UserService. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c69x-5xmw-v44x CVE-2024-24767 HIGH CasaOS Improper Restriction of Excessive Authentication Attempts vulnerability
GHSA-hcw2-2r9c-gc6p CVE-2024-28232 MODERATE CasaOS Username Enumeration - Bypass of CVE-2024-24766
GHSA-c967-2652-gfjm CVE-2024-24766 MODERATE CasaOS Username Enumeration
GHSA-h5gf-cmm8-cg7c CVE-2024-24765 HIGH CasaOS-UserService allows unauthorized access to any file

CVE-2024-24767 at a Glance

CVE Identifier CVE-2024-24767
GHSA Identifier GHSA-c69x-5xmw-v44x
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Github.com/IceWhaleTech/CasaOS UserService
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-24767

To remediate this vulnerability, upgrade all affected Github.com/IceWhaleTech/CasaOS UserService dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/IceWhaleTech/CasaOS-UserService fixed: 0.4.7
Upgrade github.com/IceWhaleTech/CasaOS-UserService to 0.4.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/IceWhaleTech/CasaOS-UserService

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-24767, inspect your project dependencies for Github.com/IceWhaleTech/CasaOS UserService:

inspect dependencies for github.com/IceWhaleTech/CasaOS-UserService

Analyze the terminal output to locate any version of Github.com/IceWhaleTech/CasaOS UserService in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In Github.com/IceWhaleTech/CasaOS UserService, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Here it is observed that the CasaOS doesn't defend against password brute force attacks, which leads to having full access to the server. ### Details The web application lacks control over the login attempts i.e. why attacker can use a password brute force attack to find and get full access over the. ### PoC 1. Capture login request in proxy tool like Burp Suite and select password field. ![1](https://user-images.githubusercontent.com/63414468/297156515-0272bfd7-f386-4c22-b3bd-c4dbdc1298bf.PNG) 2. Here I have started attack with total number of 271 password tries where the last one is the correct password and as we can see in the following image we get a **400 Bad Request** status code with the message "**Invalid Password**" and response length **769** on 1st request which was sent at **_Tue, 16 Jan 2024 18:31:32 GMT_** ![2](https://user-images.githubusercontent.com/63414468/297157815-c158995b-7d46-4a5a-aef9-bcbbcf596b15.png) **Note**: _We have tested this vulnerability with more than 3400 tries. We have used 271 request counts just for demo purposes._ 3. Here the attack is completed and we can see in the following image we get **200 OK** status code with the message "**Ok**" and response length **1509** on 271st request which was sent at **_Tue, 16 Jan 2024 18:32:01 GMT_**. ![3](https://user-images.githubusercontent.com/63414468/297159282-3f4788b5-6217-4f32-8be6-40ac117710e3.png) This means attacker can try 271 requests in 56 seconds. ### Impact This vulnerability allows attackers to get super user-level access over the server. ### Mitigation It is recommended to implement a proper rate-limiting mechanism on the server side where the configuration might be like: If a specific IP address fails to login more than 5 times concurrently then that IP address must be blocked for at least 30 seconds. This will reduce the possibility of password brute-forcing attacks.

CVE-2024-24767 Affected Github.com/IceWhaleTech/CasaOS UserService Versions

1 component(s)
Fixed Versions:
0.4.7
Product / Package Ecosystem Affected Versions Fixed Version
github.com/IceWhaleTech/CasaOS-UserService
Go
≥ 0.4.4.3
< 0.4.7
0.4.7

References

Frequently Asked Questions

What is CVE-2024-24767?
CVE-2024-24767 is a security vulnerability in Github.com/IceWhaleTech/CasaOS UserService involving CasaOS Improper Restriction of Excessive Authentication Attempts vulnerability under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Github.com/IceWhaleTech/CasaOS UserService versions are affected?
Affected versions include releases prior to 0.4.7 across affected packages: github.com/IceWhaleTech/CasaOS-UserService.
What version fixes CVE-2024-24767?
Upgrading to 0.4.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/IceWhaleTech/CasaOS-UserService affected?
Yes, github.com/IceWhaleTech/CasaOS-UserService is affected in releases prior to 0.4.7. Upgrade your dependency to 0.4.7 or later.
What is the CVSS score of CVE-2024-24767?
CVE-2024-24767 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-24767?
CVE-2024-24767 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check Go dependencies for CVE-2024-24767?
Run the dependency tree command: 'inspect dependencies for github.com/IceWhaleTech/CasaOS-UserService'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c69x-5xmw-v44x",
  "modified" : "2025-04-10T23:07:21Z",
  "published" : "2024-03-06T15:25:08Z",
  "aliases" : [ "CVE-2024-24767" ],
  "summary" : "CasaOS Improper Restriction of Excessive Authentication Attempts vulnerability",
  "details" : "### Summary\nHere it is observed that the CasaOS doesn't defend against password brute force attacks, which leads to having full access to the server.\n\n### Details\nThe web application lacks control over the login attempts i.e. why attacker can use a password brute force attack to find and get full access over the.\n\n### PoC\n1. Capture login request in proxy tool like Burp Suite and select password field.\n\n![1](https://user-images.githubusercontent.com/63414468/297156515-0272bfd7-f386-4c22-b3bd-c4dbdc1298bf.PNG)\n\n2. Here I have started attack with total number of 271 password tries where the last one is the correct password and as we can see in the following image we get a **400 Bad Request** status code with the message \"**Invalid Password**\" and response length **769** on 1st request which was sent at **_Tue, 16 Jan 2024 18:31:32 GMT_**\n\n![2](https://user-images.githubusercontent.com/63414468/297157815-c158995b-7d46-4a5a-aef9-bcbbcf596b15.png)\n\n**Note**:  _We have tested this vulnerability with more than 3400 tries. We have used 271 request counts just for demo purposes._\n\n\n3. Here the attack is completed and we can see in the following image we get **200 OK** status code with the message \"**Ok**\" and response length **1509** on 271st request which was sent at **_Tue, 16 Jan 2024 18:32:01 GMT_**.\n\n![3](https://user-images.githubusercontent.com/63414468/297159282-3f4788b5-6217-4f32-8be6-40ac117710e3.png)\n\nThis means attacker can try 271 requests in 56 seconds.\n\n### Impact\nThis vulnerability allows attackers to get super user-level access over the server.\n\n\n### Mitigation\nIt is recommended to implement a proper rate-limiting mechanism on the server side where the configuration might be like:\nIf a specific IP address fails to login more than 5 times concurrently then that IP address must be blocked for at least 30 seconds. This will reduce the possibility of password brute-forcing attacks.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/IceWhaleTech/CasaOS-UserService"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.4.4.3"
      }, {
        "fixed" : "0.4.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-c69x-5xmw-v44x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24767"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/IceWhaleTech/CasaOS-UserService/commit/62006f61b55951048dbace4ebd9e483274838699"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/IceWhaleTech/CasaOS-UserService"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2614"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-307" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-06T15:25:08Z",
    "nvd_published_at" : "2024-03-06T18:15:46Z"
  }
}