logo
Home/CWEs/CWE-82/

CWE-82 - Improper Neutralization of Script in Attributes of IMG Tags in a Web Page

  • Abstraction:Variant
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2006-07-19
  • Latest Modification Date:2023-06-29

Weakness Name

Improper Neutralization of Script in Attributes of IMG Tags in a Web Page

Description

The web application does not neutralize or incorrectly neutralizes scripting elements within attributes of HTML IMG tags, such as the src attribute.

Attackers can embed XSS exploits into the values for IMG attributes (e.g. SRC) that is streamed and then executed in a victim's browser. Note that when the page is loaded into a user's browsers, the exploit will automatically execute.

Common Consequences

Scope: Confidentiality, Integrity, Availability

Impact: Read Application Data, Execute Unauthorized Code or Commands

Related Weaknesses

CWE-83Improper Neutralization of Script in Attributes in a Web Page