CVE-2026-104882: 
PHP Análise e mitigação de vulnerabilidades

Visão geral

CVE-2026-104882 is an improper access control vulnerability in the CSV import wizard of Contao's contao/core-bundle. Custom backend module "key" actions are dispatched in Backend::getBackendModule() (Backend.php:322-327) after only the module-level USER_CAN_ACCESS_MODULE check, with no per-record voter validation, enabling an Insecure Direct Object Reference (IDOR) attack. The vulnerability affects contao/core-bundle versions >= 5.0.0 < 5.3.50 and >= 5.4.0-RC1 < 5.7.12. It was originally published on August 25, 2026, and added to the GitHub Advisory Database on November 20, 2026. It carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory).

Detalhes técnicos

The root cause is a missing authorization check (CWE-862) combined with authorization bypass through a user-controlled key (CWE-639). When a custom backend module action is triggered via the CSV import wizard, Backend::getBackendModule() dispatches the action after verifying only module-level access (USER_CAN_ACCESS_MODULE), without invoking per-record voters that would enforce scope restrictions. This allows a low-privileged, authenticated editor to craft a request targeting arbitrary tl_content or tl_form_field record IDs outside their assigned scope. The value written is serialize() of a plain string array parsed from the uploaded CSV — this is a blind content overwrite, not a PHP object injection vector. A public proof-of-concept exploit is available at https://github.com/googlesky/CVE-2026-104882 (GitHub Advisory, PoC Repository).

Impacto

A non-admin backend editor scoped to specific pages or forms can overwrite the tableitems, listitems, or options fields of arbitrary tl_content and tl_form_field records across the entire Contao installation, regardless of their assigned scope. This is a blind integrity impact — the attacker cannot read the overwritten data (no confidentiality impact), and availability is not directly affected. The attack can corrupt content element configurations and form field options site-wide, potentially disrupting site functionality or injecting malicious option values visible to end users (GitHub Advisory).

Explorabilidade

A public proof-of-concept exploit written in Python is available on GitHub (googlesky/CVE-2026-104882), including a standalone full-chain exploit script (exploit/exploit.py) and a lab harness for testing. Exploitation requires low-privilege authenticated access to the Contao backend (a non-admin editor account). There is no evidence of in-the-wild exploitation at this time, and the CVE is not listed in the CISA KEV catalog. No EPSS score is currently available for this CVE (GitHub Advisory, PoC Repository).

Etapas de exploração

  1. Reconnaissance: Identify a Contao installation running contao/core-bundle >= 5.0.0 < 5.3.50 or >= 5.4.0 < 5.7.12. Obtain or compromise a low-privilege backend editor account with access to any page or form module.
  2. Identify target records: Enumerate tl_content or tl_form_field record IDs outside the attacker's assigned scope (IDs are typically sequential integers in Contao's database).
  3. Craft malicious CSV import request: Prepare a CSV file whose parsed string array, when serialized, will overwrite the target record's tableitems, listitems, or options field with attacker-controlled values.
  4. Trigger the vulnerable code path: Submit the CSV import request via the backend module action, specifying an out-of-scope record ID as the target. The request is dispatched through Backend::getBackendModule(), which only checks USER_CAN_ACCESS_MODULE and skips per-record voter validation.
  5. Confirm overwrite: The target record's field is silently overwritten with the serialized CSV data. Use the public PoC (exploit/exploit.py --host=<target>) to probe whether the out-of-scope write succeeded based on the response JSON fields (db_update_called, access_denied, updates) (GitHub Advisory, PoC Repository).

Indicadores de compromisso

  • Logs: Contao backend access logs showing CSV import requests (key=csv or equivalent action parameter) from non-admin editor accounts targeting record IDs outside their normally accessible scope; repeated import attempts against multiple record IDs in short succession.
  • Database: Unexpected or garbled values in tl_content.tableitems, tl_content.listitems, tl_content.options, tl_form_field.tableitems, tl_form_field.listitems, or tl_form_field.options columns — particularly serialized PHP string arrays (a:N:{...}) that do not match expected content.
  • Network: POST requests to the Contao backend CSV import endpoint from authenticated sessions belonging to restricted (non-admin) editor accounts, especially with record IDs not associated with the editor's assigned pages or forms.

Mitigação e soluções alternativas

Upgrade contao/core-bundle to version 5.3.50 (for the 5.3.x branch) or 5.7.12 (for the 5.7.x branch), both released on August 25, 2026. No configuration-based workaround is documented; patching is the only recommended remediation. As an interim measure, restrict backend module access to trusted users only and audit tl_content and tl_form_field records for unexpected modifications to tableitems, listitems, and options fields (GitHub Advisory, FriendsOfPHP Advisory).

Reações da comunidade

The vulnerability was discovered and reported by security researcher @HDWSec. The Contao project maintainer leofeyer published the fix to the GitHub Advisory Database on November 20, 2026. No significant broader media coverage or notable community commentary beyond the advisory and PoC publication has been identified at this time (GitHub Advisory).

Recursos adicionais


Origem: Este relatório foi gerado usando IA

Relacionado PHP Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploit CISA KEV

Tem correção

Data de publicação

CVE-2026-104883HIGH7.2
  • PHP logoPHP
  • contao/core-bundle
NãoSimNov 20, 2026
GHSA-vw9g-2c4c-g767MEDIUM6.8
  • PHP logoPHP
  • livewire/livewire
NãoSimNov 21, 2026
CVE-2026-104882MEDIUM6.5
  • PHP logoPHP
  • cpe:2.3:a:contao:contao
NãoSimNov 20, 2026
GHSA-2g6w-c7gx-fxj8MEDIUM5.4
  • PHP logoPHP
  • guzzlehttp/guzzle
NãoSimNov 21, 2026
CVE-2026-104884MEDIUM5.4
  • PHP logoPHP
  • composer://contao/contao
NãoSimNov 20, 2026

Avaliação Gratuita de Vulnerabilidades

Avalie a sua postura de segurança na nuvem

Avalie suas práticas de segurança em nuvem em 9 domínios de segurança para avaliar seu nível de risco e identificar lacunas em suas defesas.

Avaliação de solicitação

Recursos adicionais da Wiz

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades