<section title="14.5. Web Application Development"><subsection title="Objective"><paragraph
    title="14.5.1."


><![CDATA[<p>Security mechanisms are incorporated into all Web applications by design and implementation.</p>]]></paragraph>
 </subsection>
<subsection title="Context"> <block title="Scope"><paragraph
    title="14.5.2."


><![CDATA[<p>This section covers the deployment of agency Web applications and websites.</p>]]></paragraph>
</block>
<block title="Protecting Web servers"><paragraph
    title="14.5.3."


><![CDATA[<p>Even though Web servers may contain only information authorised for release into the public domain, there still remains a need to protect the integrity and availability of the information.  As such, Web servers are to be treated in accordance with the requirements of the classification of the system they are connected to.</p>]]></paragraph>
</block>
<block title="Web application components"><paragraph
    title="14.5.4."


><![CDATA[<p>Web application components at a high level consist of a Web server for presentation, a Web application for processing and a database for content storage. There can be more or fewer components, however in general there is a presentation layer, application layer and database layer.</p>]]></paragraph>
</block>
</subsection>
<subsection title="References"><paragraph
    title="14.5.5."


><![CDATA[<p>Further information on Web application security is available from the Open Web Application Security Project at:</p><table class="table-main">
<tbody>
<tr>
<td><strong>Reference</strong></td>
<td><strong>Title</strong></td>
<td><strong>Publisher</strong></td>
<td><strong>Source</strong></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p><strong>The Open Web Application Security Project (OWASP) - Reference</strong></p>
</td>
<td style="text-align: center;">OWASP</td>
<td>
<p><a rel="noopener noreferrer" href="https://owasp.org/" target="_blank">https://owasp.org/</a></p>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p><strong>NZ Digital Government - Security and Privacy assurance</strong></p>
</td>
<td style="text-align: center;">DIA</td>
<td><a title="Digital Government - security and privacy assurance" rel="noopener noreferrer" href="https://www.digital.govt.nz/standards-and-guidance/governance/managing-online-channels/security-and-privacy-for-websites/designing-for-security-and-privacy/security-and-privacy-assurance/" target="_blank">https://www.digital.govt.nz/standards-and-guidance/governance/managing-online-channels/security-and-privacy-for-websites/designing-for-security-and-privacy/security-and-privacy-assurance/&nbsp;</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p><strong>Web Design and Applications</strong></p>
</td>
<td style="text-align: center;">
<p>W3C</p>
</td>
<td>
<p><a rel="noopener noreferrer" href="https://www.w3.org/standards/webdesign/" target="_blank">https://www.w3.org/standards/webdesign/</a></p>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p><strong>Web Development – Patterns and Practices</strong></p>
</td>
<td style="text-align: center;">
<p>Microsoft</p>
</td>
<td>
<p><a rel="noopener noreferrer" href="https://msdn.microsoft.com/en-us/library/ff921348.aspx" target="_blank">https://msdn.microsoft.com/en-us/library/ff921348.aspx</a></p>
</td>
</tr>
</tbody>
</table>]]></paragraph>
 </subsection>
<subsection title="Rationale &amp; Controls"> <block title="Agency website content"><paragraph
    title="14.5.6.R.01."

    tags="Technical,Software Security,Web Applications"


><![CDATA[<p>Reviewing active content on agency Web servers will assist in identifying and mitigating information security issues.</p>]]></paragraph>
<paragraph
    title="14.5.6.C.01."

    tags="Technical,Software Security,Web Applications"


    classification="All Classifications"
    compliance="Should"
    cid="1661"
><![CDATA[<p>Agencies SHOULD review all active content on their Web servers for known information security issues.</p>]]></paragraph>
</block>
<block title="Segregation of Web application components"><paragraph
    title="14.5.7.R.01."

    tags="Technical,Software Security,Web Applications"


><![CDATA[<p>Web applications are typically very exposed services that provide complex interactions with system users. This greatly increases the security risk of being compromised. By segregating components, the impact of potential application flaws or attacks is limited.</p>]]></paragraph>
<paragraph
    title="14.5.7.C.01."

    tags="Technical,Software Security,Web Applications"


    classification="All Classifications"
    compliance="Should"
    cid="1664"
><![CDATA[<p>Agencies SHOULD minimise connectivity and access between each Web application component.</p>]]></paragraph>
</block>
<block title="Web applications"><paragraph
    title="14.5.8.R.01."

    tags="Technical,Software Security,Web Applications"


><![CDATA[<p>The Open Web Application Security Project guide provides a comprehensive resource to consult when developing Web applications.</p>]]></paragraph>
<paragraph
    title="14.5.8.C.01."

    tags="Technical,Software Security,Web Applications"


    classification="All Classifications"
    compliance="Should"
    cid="1667"
><![CDATA[<p>Agencies SHOULD follow the documentation provided in the Open Web Application Security Project guide to building secure Web applications and Web services.</p>]]></paragraph>
</block>
</subsection>
</section>
