/

CVE-2024-58403

Severity:

HIGH RISK

(7.5)

Missing Authentication (CWE-306) in AnyShare User API

CVE-2024-58403

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Sensitive Data Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

AnyShare builds through 2024-11 expose a user-management endpoint that can return user records without requiring authentication. An unauthenticated requester who can reach the endpoint may retrieve usernames, password fields, and department information.

Affected context

The issue concerns the /api/ShareMgnt/Usrm_GetAllUsers endpoint in AnyShare builds through 2024-11. It becomes risky when the endpoint is reachable by unauthenticated clients and returns user records without checking the caller's identity or permissions.

Exploit preconditions

  • Attack surface: The AnyShare user-management API endpoint
  • Required access: Network access to the endpoint; authentication is not required
  • Trigger point: An unauthenticated POST request with a [start,limit] body
  • Why exploitation is possible: The endpoint returns user records without first enforcing authentication and authorization

Why this happens

The endpoint exposes sensitive user data without verifying the caller's identity. This is a missing authentication control, mapped to CWE-306: Missing Authentication for Critical Function. The underlying insecure pattern is allowing a sensitive operation to proceed without an effective authentication check.

Potential impact

  • Usernames and department information could be disclosed
  • Password fields could be exposed, increasing the risk of account compromise
  • Exposed account details could support targeted phishing or follow-on attacks

General mitigation guidance

Defensive patterns focus on enforcing identity and authorization checks before any sensitive data is returned.

  • Require authentication by default for user-management endpoints
  • Apply authorization checks based on least privilege and caller purpose
  • Minimize returned fields and avoid exposing password-related data in API responses
  • Reduce exposure by limiting access to sensitive APIs to trusted networks or services
  • Treat request parameters as untrusted and validate them against appropriate limits

How teams detect issues like this

  • Review API routes that return user, credential, or organizational data for authentication and authorization enforcement
  • Use static analysis and code review checks to identify sensitive handlers without access-control middleware
  • Test endpoints with unauthenticated requests as part of security testing
  • Monitor logs and policy enforcement for requests to sensitive user-management routes that lack a valid identity

Sources

SourceLink
cn-sec.comcn-sec.com/archives/3431184.html
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/aishu-anyshare-info-exposure.yaml
vulncheck.comvulncheck.com/advisories/anyshare-information-disclosure-via-usrm-getallusers-endpoint

Frequently asked

questions

It may be exploitable by any unauthenticated client that can reach the endpoint over the network.

No. The described issue is that the endpoint accepts unauthenticated requests.

Require authentication and enforce authorization before returning user records, while limiting responses to necessary fields.

Apply authentication and authorization by default to sensitive API routes, and include unauthenticated access checks in code review and security testing.

Find out what's already
exploitable in your codebase.