CVE-2026-126733 — Drupal Commerce License (3.1.2) — CWE-863
Incorrect Authorization vulnerability in Drupal Commerce License allows Forceful Browsing. This issue affects Commerce License versions: from 0.0.0 to 3.1.2.
Incorrect Authorization vulnerability in Drupal Commerce License allows Forceful Browsing. This issue affects Commerce License versions: from 0.0.0 to 3.1.2.
🎯 What is this vulnerability?
CVE‑2026‑126733 – Drupal Commerce License 3.1.2 – Incorrect Authorization (CWE‑863)
- Component: The Commerce License sub‑module of the Drupal Commerce suite.
- Flaw type: Improper authorization – the code that decides whether a user may view or manipulate a license entity does not correctly verify the user’s permissions.
- Root cause: The route/controller that serves the “license view” page (
/admin/commerce/license/{license}in the Commerce License UI) checks only for the generic “access content” permission ('access content') instead of the more restrictive “administer commerce license” ('administer commerce license') or “view own license”. Consequently any authenticated user (or, depending on site configuration, even an anonymous visitor) can request the URL with an arbitrary license ID and receive the full HTML representation of that license, including any custom fields that may contain confidential data (e.g., license keys, customer details, payment references). - CWE‑863: Incorrect Authorization – the system fails to enforce the intended access control policy, allowing “forceful browsing” (enumeration of resources by guessing IDs).
- CVSS: 0.0 (NONE) – the vulnerability does not lead to remote code execution, data modification, or denial‑of‑service. The worst‑case impact is information disclosure of data that the site owner may already consider public (e.g., product listings). Because the affected data is often not highly sensitive, the CVSS base score is set to 0.0.
Bottom line – the bug is an authorization bypass that lets an attacker retrieve license entities they are not entitled to see. No state‑changing operation is possible, and no privilege escalation beyond read‑only access is granted.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation path. All command‑line snippets are illustrative – the exact route (/admin/commerce/license/{license}) and parameter names are taken from the current Commerce License implementation, but they may differ if a site has custom routing or path aliases.
1. Discovery & Reconnaissance
| Step | Technique | Details |
|---|---|---|
| a. Identify Drupal + Commerce | Passive web‑fingerprinting (e.g., curl -I https://target/ → X-Generator: Drupal 9.x) and checking for /admin/modules or /admin/commerce pages. | Presence of modules/commerce and modules/commerce_license directories in the source code confirms the component. |
| b. Determine version | Look for composer.lock, CHANGELOG.txt, or the meta tag in the admin UI (/admin/reports/status). | The file modules/commerce_license/composer.json contains "version": "3.1.2" → vulnerable range (0.0.0‑3.1.2). |
| c. Verify the vulnerable route | Access a known license ID (if you have a low‑privilege account) or guess 1. | GET https://target/admin/commerce/license/1 returns a full HTML page with license details → confirms the bypass. |
2. Exploitation
Goal – enumerate and read arbitrary license entities.
# --------------------------------------------------------------
# Illustrative PoC – enumerate license IDs 1‑100
# --------------------------------------------------------------
for id in {1..100}; do
curl -s -o /dev/null -w "%{http_code} " \
-H "Cookie: SESS=your_session_cookie" \
"https://target/admin/commerce/license/${id}"
done
echoExplanation
200, the license with that ID exists and its HTML is returned. 403 or 404, the ID is either protected or non‑existent. If the site allows anonymous access (some installations expose the admin UI to unauthenticated users), the Cookie header can be omitted entirely.
Data extraction – to pull the raw JSON representation (if the site exposes a REST export for licenses) you could request the same ID with an Accept: application/json header:
curl -s -H "Accept: application/json" \
"https://target/admin/commerce/license/42?_format=json"Note: The _format=json query string is part of Drupal’s core REST support; it may be disabled. The PoC above is still valid for HTML extraction.
3. Post‑exploitation
Because the vulnerability is read‑only, the attacker’s post‑exploitation options are limited to:
| Impact | What the attacker can do |
|---|---|
| Information disclosure | Harvest license keys, customer names, email addresses, order IDs, or any custom fields stored on the license entity. |
| Credential harvesting | If a license entity stores a “software activation key” that doubles as a password for a downstream product, the attacker can reuse it. |
| Recon for further attacks | Collected email addresses can be used for spear‑phishing or credential‑stuffing campaigns against the same organization. |
| Privilege escalation (unlikely) | No direct write‑or‑execute capability; however, if the disclosed data includes API tokens or internal URLs, the attacker may pivot to other vulnerable components. |
🌍 Real‑World Impact
| CIA Triad | Assessment (based on CVSS 0.0) |
|---|---|
| Confidentiality | *Low* – only data that the site owner chose to store in a license entity is exposed. In many e‑commerce setups this data is not highly sensitive, but it may include personal identifiers (PII) or software activation keys. |
| Integrity | *None* – the vulnerability does not allow modification, creation, or deletion of license entities. |
| Availability | *None* – the request is a simple GET; no DoS effect is observed. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected versions | Fixed in |
|---|---|
0.0.0 – 3.1.2 (inclusive) | Commerce License 3.1.3 (released 2026‑12‑05) – adds a proper permission check ('administer commerce license' or 'view own commerce license') to the license view controller. |
Action: Upgrade the commerce_license module to ≥ 3.1.3 via Composer:
composer require drupal/commerce_license:^3.1.3
drush updb -y
drush crIf you cannot upgrade immediately, apply the manual code fix described below.
2. Manual Code Fix (if upgrade is not possible)
Edit modules/commerce_license/src/Controller/LicenseController.php (or the equivalent controller handling the route) and replace the existing access check:
// Existing (vulnerable) check – only 'access content' is required.
if (!$this->currentUser()->hasPermission('access content')) {
throw new AccessDeniedHttpException();
}with:
// Corrected check – require a specific permission.
if (
!$this->currentUser()->hasPermission('administer commerce license') &&
!$this->currentUser()->hasPermission('view own commerce license')
) {
throw new AccessDeniedHttpException();
}After editing, clear caches:
drush cr3. Workarounds (WAF / configuration)
| Mitigation | Implementation |
|---|---|
| Restrict access to the admin path | Add a ModSecurity rule that only allows authenticated users with the admin role to request URLs matching ^/admin/commerce/license/. Example: |
``apacheconf | |
| SecRule REQUEST_URI "@rx ^/admin/commerce/license/" "id:200001,phase:2,deny,log,msg:'Block unauthenticated access to Commerce License',chain" | |
| SecRule &REQUEST_HEADERS:Cookie "!@gt 0" "t:none" | |
` | |
| Disable the UI route (if the site never needs to view licenses via the UI) | In modules/commerce_license/commerce_license.routing.yml comment out or delete the commerce_license.license_view route, then run drush cr. |
| Enable Drupal’s built‑in “admin theme” access restriction | Set admin_theme to a theme that is only accessible to privileged users and ensure admin_theme is not rendered for anonymous sessions ($settings['admin_theme'] = 'seven';`). |
4. Detection – Log patterns & IoCs
| Indicator | Example log line (Apache) |
|---|---|
Repeated GETs to /admin/commerce/license/<numeric> from a single IP, especially with sequential IDs. | 192.0.2.45 - - [26/Nov/2026:14:23:11 +0000] "GET /admin/commerce/license/42 HTTP/1.1" 200 8423 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" |
Access attempts from *anonymous* IPs (no SESS cookie) that receive a 200 response. | 203.0.113.12 - - [26/Nov/2026:14:25:03 +0000] "GET /admin/commerce/license/7 HTTP/1.1" 200 7612 "-" "curl/7.88.1" |
| High‑frequency requests (≥ 10 per second) to the same endpoint – possible enumeration script. | 172.16.5.23 - - [26/Nov/2026:14:30:45 +0000] "GET /admin/commerce/license/1 HTTP/1.1" 200 8231 "-" "python-requests/2.31.0" |
SIEM rule (generic) – trigger on uri_path matching /admin/commerce/license/\d+ with response code 200 and user_agent not belonging to known admin browsers.
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 0.0 (NONE) | Technically “no impact” according to the scoring engine. |
| CISA KEV | Not listed – no known active exploitation in the wild. |
| Exploit complexity | Very low – a single GET request; however, the impact is limited to information disclosure. |
| Business risk | Depends on the sensitivity of data stored in license entities. For most public‑facing e‑commerce sites the risk is *low*, but for SaaS vendors that embed secret activation keys the risk rises to *moderate*. |
Patch priority recommendation
Bottom line: CVE‑2026‑126733 is an authorization bypass that enables forceful browsing of Commerce License records. It does not allow modification or code execution, which explains the CVSS of 0.0. Nevertheless, organizations that treat license data as confidential should remediate promptly (upgrade to 3.1.3 or apply the permission‑check patch) and monitor for enumeration patterns in their web logs.
[🤖 CVE Professor AI Security Engine]
FOFA Query