/

CVE-2026-134679

Severity:

HIGH RISK

(7.5)

Missing Authorization (CWE-862) in WeddingShare Gallery

CVE-2026-134679

Received

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthorized disclosure of private media and related information

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

WeddingShare's anonymous gallery-item action can reveal upload paths and uploader names without verifying the gallery secret key. An unauthenticated attacker may enumerate item IDs and use the exposed paths to access photos or videos when those files are served without equivalent authorization checks.

Affected context

The issue affects WeddingShare galleries where the anonymous MediaViewerController.GalleryItem action is reachable and item IDs can be queried. Risk increases when the action returns upload paths without checking the gallery secret and the corresponding media files are available as static files without a separate access-control check.

Exploit preconditions

  • Attack surface: The publicly reachable gallery-item action and the static-file paths it exposes
  • Required access: No authentication is required according to the vulnerability description
  • Trigger point: Requests for gallery items using their integer IDs
  • Why exploitation is possible: The action does not enforce authorization using the gallery secret before disclosing item paths and uploader names; sequential IDs may make items easier to enumerate

Why this happens

The underlying bug is a missing authorization check, mapped to CWE-862. The application exposes gallery-item information through an anonymous action without first establishing that the requester is permitted to view the protected gallery. If file delivery also lacks access controls, knowledge of a static-file path can bypass the intended gallery restriction.

Potential impact

  • Attackers may learn upload paths and uploader names
  • Photos and videos in key-protected galleries could be disclosed
  • Private information shown in media may be exposed
  • Users may lose confidence in the privacy of protected galleries

General mitigation guidance

Defensive patterns include enforcing authorization at every point where protected gallery data or media is accessed, rather than relying on obscurity of item IDs or paths. Apply the gallery secret or an equivalent authorization decision before returning item metadata, and ensure static-file delivery follows the same access policy. Reduce exposure of internal upload paths, use least-privilege file access, and prefer secure-by-default media delivery that denies access unless permission is established.

How teams detect issues like this

Review anonymous controller actions that return gallery metadata, filenames, or storage paths, and check whether authorization is enforced before data is returned. Trace media URLs through the serving layer to confirm that static files cannot be retrieved outside the gallery access policy. Static analysis and code review can flag sensitive resource access without an associated authorization check; policy tests can verify that unauthenticated requests are denied and that item identifiers do not expose protected content.

Sources

SourceLink
github.comgithub.com/Cirx08/WeddingShare/blob/1.8.2/WeddingShare/Controllers/MediaViewerController.cs#L18-L100
github.comgithub.com/Cirx08/WeddingShare/issues/199
vulncheck.comvulncheck.com/advisories/weddingshare-through-1.8.2-missing-authorization-via-mediaviewer-galleryitem

Frequently asked

questions

The described action is anonymous and may be reachable over the application interface. Exploitation depends on the endpoint and media files being accessible in the deployed environment.

The description indicates that neither is required to retrieve item paths through the affected action. Access to the resulting media may also depend on how static files are served.

Enforce authorization before returning item details, and apply equivalent access checks when delivering the underlying media.

Treat identifiers and file paths as non-secret, test access controls at every layer, and use policies that deny access unless authorization is explicitly established.

Find out what's already
exploitable in your codebase.