×
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

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

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

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 are the differences between the include directive and the exec directive in SSI injection attacks?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/WAPT Web Applications Penetration Testing, Web attacks practice, bWAPP - Server-Side Include SSI injection, Examination review

The include directive and the exec directive are both features of Server-Side Includes (SSI) that allow for dynamic content inclusion in web applications. However, they differ in their functionality and potential security implications, particularly in the context of SSI injection attacks. In this explanation, we will consider the differences between these two directives and highlight their significance in the realm of web application security.

The include directive in SSI is used to include the content of an external file into a web page. It is typically employed to include common elements such as headers, footers, or navigation menus across multiple pages, thereby promoting code reusability and maintainability. The syntax for the include directive is as follows:

<!–#include virtual="/path/to/file" –>

The virtual attribute specifies the path to the file that needs to be included. This path can be either absolute or relative to the current web page. The include directive is processed by the web server before the page is served to the client, and the content of the included file is embedded directly into the page.

On the other hand, the exec directive in SSI allows for the execution of an external program or script on the server. It enables the dynamic generation of content based on the output of the executed program. The syntax for the exec directive is as follows:

<!–#exec cmd="/path/to/program" –>

The cmd attribute specifies the path to the program or script that needs to be executed. The output of the program is then included in the web page at the location of the exec directive. It is important to note that the exec directive poses a higher security risk compared to the include directive, as it allows for arbitrary code execution on the server.

In the context of SSI injection attacks, the differences between the include and exec directives become important. SSI injection is a type of vulnerability that arises when user-supplied input is not properly sanitized and is directly included in SSI directives. Attackers can exploit this vulnerability to inject malicious SSI directives, leading to unauthorized access, data leakage, or even remote code execution.

When an attacker injects malicious SSI code using the include directive, the impact is limited to the content of the included file. For example, if the attacker injects a directive to include a file containing sensitive information, they may be able to retrieve that information. However, the attacker's control is confined to the content of the included file, and they cannot execute arbitrary commands on the server.

On the other hand, if the attacker injects malicious SSI code using the exec directive, they can execute arbitrary commands on the server. This can have severe consequences, such as compromising the entire server or launching further attacks against other systems. For instance, an attacker may inject a directive to execute a command that deletes important files or spawns a reverse shell, providing them with unauthorized access to the server.

The include directive in SSI is used for including the content of external files into web pages, promoting code reusability. It poses a lower security risk compared to the exec directive, as it does not allow for arbitrary code execution. The exec directive, on the other hand, enables the execution of external programs or scripts, making it more powerful but also more dangerous. It allows for arbitrary code execution and can lead to severe security breaches if not properly secured.

Other recent questions and answers regarding bWAPP - Server-Side Include SSI injection:

  • What are the different security levels in bWAPP for SSI injection and how do they affect the vulnerability and exploitation process?
  • How can an attacker exploit SSI injection vulnerabilities to gain unauthorized access or perform malicious activities on a server?
  • How can web developers analyze a web page for SSI injection vulnerabilities?
  • What is Server-Side Include (SSI) injection and how does it target web applications?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/WAPT Web Applications Penetration Testing (go to the certification programme)
  • Lesson: Web attacks practice (go to related lesson)
  • Topic: bWAPP - Server-Side Include SSI injection (go to related topic)
  • Examination review
Tagged under: Cybersecurity, Exec Directive, Include Directive, Server-Side Includes, SSI, SSI Injection Attacks
Home » Cybersecurity » EITC/IS/WAPT Web Applications Penetration Testing » Web attacks practice » bWAPP - Server-Side Include SSI injection » Examination review » » What are the differences between the include directive and the exec directive in SSI injection attacks?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • 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 (Medium publ.)
  • About
  • Contact

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.

Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support

90% of EITCA Academy fees subsidized in enrolment by

    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 X
    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) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) 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
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


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

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?