PT-2017-7494 · Mustache+1 · Mustache+1
Publicado
2017-01-23
·
Atualizado
2018-10-09
·
CVE-2015-8862
CVSS v3.1
6.1
Média
| Vetor | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
mustache versions prior to 2.2.1
Description
The issue allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted. This can occur when attributes in mustache templates are not properly encapsulated. For example, a template like
<a href={{foo}}/> with input { 'foo' : 'test.com onload=alert(1)'} can result in a rendered output of <a href=test.com onload=alert(1)/>, facilitating the XSS attack.Recommendations
Update to version 2.2.1 or later.
Alternatively, ensure that all attributes in mustache templates are encapsulated with quotes.
Exploit
Correção
XSS
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Debian
Mustache