Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2025-28367: Directory Traversal in mojoPortal BetterImageGallery ImageHandler

Published Apr 21, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.5Medium · v3.1
EPSS2.0%81st percentile
CISA KEVNoNot listed
In the wildReported144 exploitation records in Mallory
Vendor
Mojoportal
IdentifiersCVE-2025-28367CWE-22

CVE-2025-28367 is a directory traversal vulnerability in mojoPortal versions 2.9.0.1 and earlier. The issue affects the BetterImageGallery API Controller, specifically the ImageHandler action. By supplying crafted path input, an attacker can traverse outside the intended directory scope and read arbitrary files accessible to the web application. The provided context specifically states that the vulnerability can be used to access the application's Web.Config file and obtain the ASP.NET MachineKey.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows unauthorized file read via directory traversal. In the described scenario, an attacker can retrieve the Web.Config file and extract the ASP.NET MachineKey. Exposure of the MachineKey can enable further compromise depending on application configuration, including forging or tampering with protected ASP.NET data such as forms authentication tickets, view state, or other cryptographically protected values. At minimum, this results in disclosure of sensitive configuration data and may facilitate follow-on attacks against the application.

Mitigation

If you can’t patch tonight, do this now.

If an official fix is not yet available, disable or restrict access to the BetterImageGallery ImageHandler endpoint where feasible. Apply web server or WAF rules to block traversal patterns, including encoded traversal payloads. Limit the web application's filesystem permissions so the application identity cannot read unnecessary sensitive files. Monitor logs for suspicious requests targeting the BetterImageGallery API Controller or attempts to access Web.Config and similar sensitive paths. Rotating the ASP.NET MachineKey should be considered if exposure is suspected.

Remediation

Patch, then assume compromise.

Upgrade mojoPortal to a fixed version if one is available from the vendor. The vulnerable BetterImageGallery API Controller ImageHandler action should be corrected to canonicalize and strictly validate user-supplied paths, restrict file access to an allowlisted base directory, and reject traversal sequences such as ../ and equivalent encoded variants. Sensitive files such as Web.Config should never be retrievable through application file-handling endpoints.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
MojoportalMojoportalapplication
FAQ

Frequently asked questions

Is CVE-2025-28367 exploited in the wild?
Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2025-28367?
Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-28367.
Is there a patch for CVE-2025-28367?
Upgrade mojoPortal to a fixed version if one is available from the vendor. The vulnerable BetterImageGallery API Controller ImageHandler action should be corrected to canonicalize and strictly validate user-supplied paths, restrict file access to an allowlisted base directory, and reject traversal sequences such as ../ and equivalent encoded variants.
What products are affected by CVE-2025-28367?
Mojoportal.
How severe is CVE-2025-28367?
CVE-2025-28367 has a CVSS v3.1 score of 6.5 (Medium) and an EPSS score of 2.0% (81st percentile) as of Sep 25, 2026.
Activity feed

Recent activity

5 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.