/

CVE-2026-71262

Severity:

CRITICAL RISK

(9.8)

Missing Authentication (CWE-306) in IoTSharp Blob Storage

CVE-2026-71262

Received

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized File Operations and Potential Remote Code Execution

Severity:

CRITICAL RISK

(9.8)

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

IoTSharp blob-storage endpoints are exposed without authentication and accept unsanitized path and filename values. An unauthenticated remote attacker may be able to traverse outside the intended storage directory to upload, read, modify, or delete files, potentially enabling remote code execution where web-accessible files can be executed.

Affected context

The vulnerability occurs in IoTSharp deployments where the BlobStorageController endpoints do not require authorization and no application-wide fallback authorization policy is configured. Upload, download, list, modify, and delete operations become especially risky when path and filename values are accepted without normalization or confinement to the designated blob-storage directory.

Exploit preconditions

  • Attack surface: Remotely reachable BlobStorageController HTTP endpoints
  • Required access: No prior authentication may be required when endpoint and global authorization controls are absent
  • Trigger point: Requests that supply path or filename values to blob-storage operations
  • Why exploitation is possible: Missing authorization exposes file-management functionality, while insufficient path validation may allow references outside the intended storage location

Why this happens

The primary issue is missing authentication enforcement, mapping to CWE-306: Missing Authentication for Critical Function. The controller does not apply an authorization requirement consistently, and the application does not provide a fallback policy that protects otherwise unannotated endpoints.

A related design weakness is inadequate path handling. User-controlled path and filename components are combined into filesystem paths without reliably normalizing, validating, and constraining the resulting path to an approved storage root. This can enable path traversal and unauthorized filesystem operations.

Potential impact

  • Unauthenticated attackers may upload files to unintended locations
  • Attackers may read, modify, or delete files outside the blob-storage directory
  • Sensitive application, configuration, or source files could be exposed
  • Web-accessible upload locations could enable execution of attacker-controlled code
  • Application integrity, availability, and confidentiality may be compromised

General mitigation guidance

Mitigation generally focuses on enforcing authentication and authorization consistently and treating all file path components as untrusted input.

Common defensive patterns include:

  • Require explicit authorization on every blob-storage endpoint or configure a secure, deny-by-default fallback policy
  • Enforce least-privilege identities for the application and its filesystem access
  • Resolve and normalize candidate paths, then verify they remain beneath an approved storage root
  • Prefer generated server-side object identifiers over user-supplied filesystem names
  • Store uploaded content outside web-accessible and executable directories
  • Apply allowlists for file types, names, and operations where business requirements permit
  • Separate upload, read, update, and delete permissions instead of granting broad file-management access
  • Avoid returning sensitive filesystem details in error responses

How teams detect issues like this

High-level detection can combine:

  • Static analysis for controllers exposing file operations without authorization attributes or equivalent policy enforcement
  • Code review checks for applications lacking a deny-by-default authorization fallback
  • Searches for filesystem APIs that concatenate request parameters into paths
  • Tests using normalized and traversal-like path variants to verify confinement to the storage root
  • Web-server and application logs reviewed for unauthenticated access, unusual path values, unexpected file extensions, and writes to web-accessible directories
  • Policy checks requiring authenticated access and non-executable upload locations in deployment configurations

Automated code review and security scanning tools may help identify missing authorization and unsafe path-construction patterns.

Sources

SourceLink
github.comgithub.com/IoTSharp/IoTSharp
github.comgithub.com/IoTSharp/IoTSharp/blob/master/IoTSharp/Controllers/BlobStorageController.cs

Frequently asked

questions

Yes. Where the affected endpoints are externally reachable and lack authentication requirements, a remote attacker may interact with them without an account.

The described exposure may require only network access to the BlobStorageController endpoints. Exploitation depends on deployment routing, endpoint visibility, and filesystem permissions.

Enforce authentication and authorization by default, then confine every file operation to a dedicated non-web-accessible storage root using canonical path validation and server-controlled identifiers.

Use deny-by-default authorization policies, review all file-handling endpoints, test traversal and access-control boundaries, apply least privilege, and keep uploaded content away from executable web paths.

Find out what's already
exploitable in your codebase.