Skip to main content

OpenMage LTS CVE-2026-42207

| EUVDEUVD-2026-30570 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-05-05 https://github.com/OpenMage/magento-lts GHSA-qpgq-5g92-j5q8
6.1
CVSS 3.1 · Vendor: https://github.com/OpenMage/magento-lts
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious URL with non-existent product ID
  2. Delivery
    Distribute link via email/social media
  3. Exploit
    Authenticated customer clicks link
  4. Install
    ProductAlert controller receives request
  5. C2
    Product lookup fails (ID doesn't exist)
  6. Execute
    Missing _isUrlInternal() validation bypassed
  7. Impact
    HTTP 302 redirect to attacker domain
  8. Step 8
    Customer follows redirect to phishing page

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three specific, concrete conditions: (1) OpenMage LTS version 20.17.0 or earlier must be running with the Product Alerts feature enabled (default configuration, enabled via System > Configuration > Catalog > Product Alerts). (2) The target user must be an authenticated customer - the preDispatch() hook in the ProductAlert controller enforces customer session authentication via Mage::getSingleton('customer/session')->authenticate($this), which redirects unauthenticated users to the login page. Unauthenticated attackers cannot trigger the vulnerability remotely; they must send the crafted link to a customer who is already logged in, or the link must be clicked by an authenticated customer. (3) The product_id parameter must reference a product that does not exist in the store's catalog (e.g., a very high ID like 99999 or a randomly chosen non-matching ID) - this triggers the vulnerable code path in the if (!$product->getId()) branch where the _isUrlInternal() validation is absent. If the product ID exists, the code proceeds to the next block and handles the redirect differently (not vulnerable). These conditions mean the vulnerability cannot be exploited against unauthenticated users or in a fully automated scanning context; it is a post-authentication privilege escalation (social engineering) vector rather than an unauthenticated remote code execution.

Impact

CVSS v3.1 base score of 6.1 with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N indicates moderate-to-low severity by automated metrics, but real-world risk is elevated due to multiple exploitation signals. Attack vector is network (AV:N) and complexity is low (AC:L), meaning any unauthenticated attacker can craft a malicious URL; however, the critical limiting factor is user interaction (UI:R) - the victim must click the attacker's link while authenticated to the store. The scope is changed (S:C), indicating the impact crosses trust boundaries (redirects outside the store domain), with confidentiality and integrity impacts (C:L/I:L) through phishing and social engineering. The absence of availability impact (A:N) means no denial of service. No EPSS score or KEV (CISA Known Exploited Vulnerabilities) status provided in input data. The vulnerability is reproducible locally in OpenMage LTS ≤ 20.17.0 per the GitHub advisory, but reproduction against the public demo at https://demo.openmage.org/ was unsuccessful, suggesting either stricter configuration or active patching on that instance. The practical risk hinges on three factors: (1) Product Alerts must be enabled (default configuration), (2) the target must be authenticated (enforced by preDispatch() customer authentication hook), and (3) the victim must click an attacker-controlled link. This combination narrows the threat actor profile to phishing campaigns targeting known store customers, rather than opportunistic automated scanning. The CVSS-to-reality gap exists because CVSS does not heavily penalize UI:R in the base score, yet credential theft via phishing is a mature, effective attack pattern with demonstrated ROI.

Exploit ScenarioDerived

An attacker crafts a phishing email or social media post that reads: 'Click here to manage your stock notification preferences for [Store Name].' The link contains a specially crafted URL such as https://legitimate-store.com/productalert/add/stock/?product_id=99999&uenc=https://attacker-phishing-site.com/fake-login. A logged-in customer receives the email and clicks the link while authenticated. The store's ProductAlert controller receives the request, checks for a product with ID 99999 (which does not exist), and because the _isUrlInternal() check is missing, immediately issues an HTTP 302 redirect to the attacker's domain. The customer's browser follows the redirect and lands on a fake login page hosted on the attacker's infrastructure. The customer, trusting the legitimate store domain they saw momentarily in the browser bar, re-enters their password on the fake page. The attacker captures the credentials and gains account access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Open redirect vulnerability in OpenMage LTS through version 20.17.0 allows authenticated attackers to redirect logged-in customers to arbitrary external URLs via an unvalidated uenc parameter in the ProductAlert stockAction() controller. The vulnerability occurs when a non-existent product ID is supplied, bypassing the _isUrlInternal() validation check present in the analogous priceAction() method. Attackers can exploit this for credential phishing, OAuth token theft, affiliate fraud, or malware distribution by crafting a malicious link and distributing it via email, forums, or social media.

RemediationAI

Vendor-released patch: upgrade to OpenMage LTS version 20.18.0 or later. The fix applies the _isUrlInternal() validation guard to the stockAction() method, mirroring the secure pattern already present in priceAction(). If immediate patching is not possible, implement a temporary web application firewall (WAF) rule to block requests to /productalert/add/stock/ that contain a uenc parameter pointing to external domains - allow only uenc values matching the store's own domain or relative paths beginning with /. This mitigation eliminates the attack vector at the network perimeter but does not resolve the underlying code defect and may produce false positives if the store legitimately uses the uenc parameter for external redirects elsewhere. The most reliable short-term control is to disable the Product Alerts feature entirely via admin configuration (System > Configuration > Catalog > Product Alerts) if business requirements permit; this eliminates the vulnerable endpoint entirely. Communicate with customers that the stock notification feature will be temporarily offline during patching to avoid confusion. Apply the patch as soon as possible, as the vulnerability is publicly documented and proof-of-concept steps are available.

Affected VersionsENISA

magento-lts < 20.18.0

Affected Packages

composer openmage/magento-lts fix: 20.18.0
euvd magento_lts fix: 20.18.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenMage LTS is a community-maintained fork of Magento 1.x, a PHP-based e-commerce platform. The vulnerability exists in the Mage_ProductAlert_AddController::stockAction() method located in app/code/core/Mage/ProductAlert/controllers/AddController.php. The controller accepts a uenc (URL-encoded return URL) query parameter and a product_id parameter. When a user requests stock alerts for a product, the code retrieves the product from the catalog database. If the product does not exist (ID returns no match), the code calls _redirectUrl($backUrl) directly without first validating that the URL is internal to the store domain using the _isUrlInternal() method. This is a clear deviation from the secure pattern already implemented in the sibling priceAction() method within the same controller, where the _isUrlInternal() check is present. The root cause is CWE-601 (URL Redirection to Untrusted Site / Open Redirect), a classic control-flow bypass where user-supplied input directly influences redirect destinations without domain validation.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/OpenMage/magento-lts) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from Vendor (https://github.com/OpenMage/magento-lts) · only source for this CVE.

CVSS VectorVendor: https://github.com/OpenMage/magento-lts

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

Mage_ProductAlert_AddController::stockAction() reads the uenc query parameter and passes it directly to $this->_redirectUrl($backUrl) without calling $this->_isUrlInternal() When the supplied product_id does not match any catalog product, the server issues an unvalidated HTTP 302 redirect to whatever URL was provided as uenc.

Vulnerable path:

php
// app/code/core/Mage/ProductAlert/controllers/AddController.php : stockAction()

$backUrl = $this->getRequest()->getParam(Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED);  // raw, no decode
$productId = (int) $this->getRequest()->getParam('product_id');

if (!$backUrl || !$productId) {
    $this->_redirect('/');
    return;
}

$product = Mage::getModel('catalog/product')->load($productId);

if (!$product->getId()) {
    $session->addError($this->__('Not enough parameters.'));
    $this->_redirectUrl($backUrl);   // ← NO _isUrlInternal() check
    return;
}

Secure peer (priceAction()):

php
if (!$product->getId()) {
    if ($this->_isUrlInternal($backUrl)) {  // ← validation present
        $this->_redirectUrl($backUrl);
    } else {
        $this->_redirect('/');
    }
    return;
}

Steps to Reproduce

Prerequisites

  • OpenMage LTS ≤ 20.16.0 with Product Alerts enabled (default configuration)
  • A valid, logged-in customer session on the target store
Step 1 - Authenticate as a Customer (Attacker controls the crafted link; victim must be logged in)

The preDispatch() hook calls Mage::getSingleton('customer/session')->authenticate($this). If the request comes from an unauthenticated user, they are redirected to the login page first. The open redirect only fires after the customer is authenticated. This is the realistic attack scenario: the attacker sends a crafted link to a customer who is already logged in.

<img width="1548" height="638" alt="image" src="https://github.com/user-attachments/assets/64c18279-ec0a-4110-b8f4-d952870e348c" />

Step 2 - Craft the Malicious URL

The uenc parameter is read raw via getParam() with no base64 decoding in this code path. A plain URL is sufficient and produces the redirect:

GET /productalert/add/stock/?product_id=99999&uenc=https://evil.com/steal-credentials HTTP/1.1
Host: <store-hostname>
Cookie: om_frontend=<authenticated-session>

Key conditions:

  • product_id must reference a non-existent product (triggers the vulnerable branch; any large ID works)
  • uenc is the raw destination URL (no base64 encoding required)

<img width="1554" height="852" alt="image" src="https://github.com/user-attachments/assets/d8530247-2d2f-4747-bf16-ece71a507b50" />

Impact

Technical Impact

An attacker who controls the uenc parameter value can redirect any logged-in shopper to an arbitrary external URL. Because the redirect originates from the legitimate store domain, the victim’s browser shows the trusted store URL in the address bar momentarily before being sent to the attacker site. The HTTP 302 response exits the store’s origin before the browser shows anything to the user.

Business-Level Attack Vectors

ScenarioDescription
Credential phishingCraft a link claiming to show a stock notification. Customer lands on attacker’s login clone and reuses their password.
OAuth / SSO token theftIf the store uses a social login or “Login with Google” flow, the attacker can inject their redirect_uri via the open redirect, stealing OAuth tokens.
Affiliate fraudRedirect customers from the legitimate store to a competing retailer after they click a “notify me” link.
Malware distributionRedirect to drive-by-download pages with the store’s reputation acting as social proof.

Propagation

A single malicious link can be embedded in:

  • Customer emails (“Click here for stock notification preferences”)
  • Forum posts, social media, or product reviews on the store
  • SEO-poisoned search results that rank the store’s domain

Recommended Fix

Apply the same _isUrlInternal() guard used in priceAction() to the stockAction() missing-product

This is an AI-generated report.

An attempt was made to test the same PoC against the online demo https://demo.openmage.org/ but it couldn't be reproduced. It was only reproduced against the local setup env against the latest version.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy