×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is the difference between stored XSS and DOM-based XSS?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/WAPT Web Applications Penetration Testing, Cross-site scripting, XSS - reflected, stored and DOM, Examination review

Stored XSS and DOM-based XSS are two common types of cross-site scripting (XSS) vulnerabilities that can pose serious security risks to web applications. While both involve injecting malicious code into a website, they differ in how the code is executed and the potential impact on users.

Stored XSS, also known as persistent XSS, occurs when an attacker injects malicious code that is permanently stored on the target server and served to users whenever they access a specific page or view a particular piece of content. This type of XSS vulnerability is particularly dangerous because it can affect multiple users who visit the compromised page or interact with the infected content. The injected code is typically stored in a database, file, or other data storage mechanism and is retrieved and displayed to users without proper sanitization or validation.

To illustrate, suppose a social media platform allows users to post comments on a public forum. If an attacker manages to inject malicious JavaScript code into a comment, it can be stored in the platform's database and displayed to all users who view that particular post. When unsuspecting users load the page, their browsers will execute the injected code, potentially leading to unauthorized actions, data theft, or further exploitation.

On the other hand, DOM-based XSS, also known as client-side XSS or type-0 XSS, occurs when an attacker manipulates the Document Object Model (DOM) of a web page to inject and execute malicious code. Unlike stored XSS, the injected code is not stored on the server but rather directly modifies the webpage's DOM, which is responsible for rendering the page's structure and content in the browser. This type of XSS vulnerability is typically triggered by user interactions or specific actions that cause the browser to execute the injected code.

For example, consider a web application that allows users to submit feedback forms. If the application fails to properly sanitize or validate user input, an attacker could inject JavaScript code that modifies the DOM and performs unauthorized actions when the user submits the form. This could include stealing sensitive information, redirecting the user to a malicious website, or performing actions on behalf of the user without their consent.

To summarize, the main difference between stored XSS and DOM-based XSS lies in how the malicious code is executed. Stored XSS involves injecting code that is permanently stored on the server and served to users, while DOM-based XSS manipulates the webpage's DOM to execute the injected code in the user's browser. Both types of XSS vulnerabilities can have severe consequences, compromising user data, and enabling further attacks.

Understanding the difference between stored XSS and DOM-based XSS is important for web application security professionals. By identifying and mitigating these vulnerabilities, organizations can protect their users from potential attacks and maintain the integrity of their web applications.

Other recent questions and answers regarding Cross-site scripting:

  • How can a web developer mitigate XSS vulnerabilities?
  • How does reflected XSS differ from stored XSS?
  • What are the three main types of cross-site scripting (XSS) attacks?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/WAPT Web Applications Penetration Testing (go to the certification programme)
  • Lesson: Cross-site scripting (go to related lesson)
  • Topic: XSS - reflected, stored and DOM (go to related topic)
  • Examination review
Tagged under: Cross-Site Scripting, Cybersecurity, DOM-based XSS, Stored XSS, Web Security, XSS
Home » Cross-site scripting / Cybersecurity / EITC/IS/WAPT Web Applications Penetration Testing / Examination review / XSS - reflected, stored and DOM » What is the difference between stored XSS and DOM-based XSS?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Artificial Intelligence
    • Cybersecurity
    • Cloud Computing
    • Quantum Information
    • Web Development
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.