Home page logo
/

basics logo Security Basics mailing list archives

Re: #include file tag in HTML: possible issues?
From: Brad Spangler <brad_spangler () yahoo com>
Date: Fri, 13 Jan 2006 20:16:48 -0600

That include tag is a server side include (SSI) directive used to indicate to 
Apache (or similar web servers) that it should merge in some content from 
another file -- typically either plain text or HTML formatted text.

I would be fascinated if I found out otherwise, but to the best of my 
understanding everything should be kosher as long as we're talking about 
static text files. That is to say, the files or the include directive 
typically won't add any potential security issues all by themselves. Your 
SHTML file (that's the extension commonly tacked on to HTML files with SSI 
directives) should be as safe as any plain HTML file.

HOWEVER -- more problematic than a simple include of a static file are some of 
the other SSI directives, such as "exec". Fortunately, Apache (version 2 
anyway -- maybe or maybe not on earlier versions, I'm not sure) offers the 
ability to disable "exec" while still using "include". 



On Friday 13 January 2006 09:20 am, Giuseppe DELL'ERBA wrote:
Hi all,

I have to evaluate from security point of view an application that is going
to add in its template pages the #include file tag. This will allow a
section of code to be inserted in the page, and the code that is inserted
may be stored in an external file.

Do you think this feature can introduce possible security threats? And,
eventually, the remediation needed?

Thanks
Peppe


---------------------------------------------------------------------------
EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE
The Norwich University program offers unparalleled Infosec management
education and the case study affords you unmatched consulting experience.
Tailor your education to your own professional goals with degree
customizations including Emergency Management, Business Continuity
Planning, Computer Emergency Response Teams, and Digital Investigations.

http://www.msia.norwich.edu/secfocus
---------------------------------------------------------------------------
-

-- 
Brad Spangler
http://bradspangler.com/blog/

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.7 (GNU/Linux)

mQGiBEO91xoRBACQpqShfC/UChKIvHvH9SCmTMjUlFTBXyusOwWTDBvVdWK53q+e
HfoGQYPb864OcukL3ABgfJuOvXi3I2qlEZ+Dm8dCZt4ucfFJ8YdrnG4UY1tb4ULT
/DlGbPsTIyEa8h1qpXeo6KCYbYD1nBBn5uaol3dqySa3M8d1EbnvoWxiRwCgtUH8
eCT4YYA0hmSL2zdDBZudU7UD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hWftoMwnB0P08GRbkBDQRDvdchEAQAz3888b1Z1KjJ
6rxi7Qu+AxIHtrQHB+8HdLU3j/mT1p7UqQeHg0X5uX5h1vwhENXTK8IO1rOPgqGh
fz0cPoTyloKtaLK8NiLxmRmyvCe+OQirJMrkbdPlhVdmeUSMmvTdPeu0r71THo1Y
1wDKwjHU9SdiU3+uAXbF/QP6xqCHZUsAAwUEALcHrRWVLJ1AR8jaI6EVEDcaRvzW
Avvk6z1DQJu3euPMONAOL7XGOAG1AS0rEw+3H1vlL2y5VTP/FgxfVYuNOAaDoVPk
8lkB63x/Bi+9PDvWgAjmRi9vI5R7WGt1OGGa+JVl9iiSZfLrTlVpzmxj7Vdio99t
BBKMUeI4Wd9j1Y4/iEwEGBECAAwFAkO91yEFCQDtTgAACgkQqV7Zasr5NrOZ+QCe
PRIjzOPZ5fTo9HEdhs7+rTTE0psAn1jkdIMpJqvg472u9EvYPKiGBRmC
=7I1S
-----END PGP PUBLIC KEY BLOCK-----

---------------------------------------------------------------------------
EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE
The Norwich University program offers unparalleled Infosec management 
education and the case study affords you unmatched consulting experience. 
Tailor your education to your own professional goals with degree 
customizations including Emergency Management, Business Continuity Planning, 
Computer Emergency Response Teams, and Digital Investigations. 

http://www.msia.norwich.edu/secfocus
----------------------------------------------------------------------------


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault