Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
],
"summary": "OpenMage vulnerable to XSS in Admin Notifications",
"details": "### Summary\nOpenMage versions v20.15.0 and earlier are affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by an admin with direct database access or the admin notification feed source to inject malicious scripts into vulnerable fields. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.\n\n### Details\nUnescaped translation strings and URLs are printed into contexts inside `app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Actions.php`. A malicious translation or polluted data can inject script. \n- Link labels use __() without escaping.\n- ’deleteConfirm()’ embeds a message without escaping.\n\n### PoC\n1. Add XSS to admin locale (e.g. app/locale/en_US/local.csv):\n ```\n \"Read Details\",\"<img src=x onerror=alert(123)>\"\n \"Mark as Read\",\"<script>alert(123)</script>\"\n ```\n2. Flush Cache. Make sure locale is set to en_US.\n3. Add any admin notification (e.g. via test.php)\n ```\n <?php\n require 'app/Mage.php';\n Mage::app('admin');\n Mage::getModel('adminnotification/inbox')->setData([\n 'severity' => Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE,\n 'date_added' => now(),\n 'title' => 'XSS renderer test',\n 'description' => 'Testing actions renderer',\n 'url' => 'https://example.com', // makes the \"Read Details\" link appear\n 'is_read' => 0, // makes the \"Mark as Read\" link appear\n 'is_remove' => 0,\n ])->save();\n ```\n4. Open Admin → System → Notifications → Inbox.\n5. Profit.\n\n### Impact\nThe vulnerability is only exploitable by an attacker with administrative or translation privileges. Malicious JavaScript may be executed in a victim’s browser when they browse to the admin page containing the vulnerable fields.",
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
}
],
"severity": [],
"affected": [
{
"package": {
Expand All @@ -33,6 +28,22 @@
]
}
]
},
{
"package": {
"ecosystem": "Pub",
"name": "openmage/magento-lts"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
]
}
],
"references": [
Expand All @@ -57,7 +68,7 @@
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"severity": "CRITICAL",
"github_reviewed": true,
"github_reviewed_at": "2025-11-03T20:24:10Z",
"nvd_published_at": "2025-11-06T21:15:43Z"
Expand Down