Validating all inputs will ensure that the input is within expected ranges, reducing the chance that malicious or erroneous input causes
unexpected results.
14.4.5.C.01.
ControlSystem Classification(s): All Classifications; Compliance: SHOULD
[CID:1639]
Agencies SHOULD ensure that software developers use secure programming practices when writing code, including:
designing software to use the lowest privilege level needed to achieve its task;
denying access by default;
checking return values of all system calls; and
validating all inputs.
14.4.6.
Software testing
14.4.6.R.01.
Rationale
Software reviewing and testing will reduce the possibility of introducing vulnerabilities into a production environment.
14.4.6.R.02.
Rationale
Using an independent party for software testing will limit any bias that can occur when a developer tests their own software.
14.4.6.C.01.
ControlSystem Classification(s): All Classifications; Compliance: SHOULD
[CID:1643]
Software SHOULD be reviewed or tested for vulnerabilities before it is used in a production environment.
14.4.6.C.02.
ControlSystem Classification(s): All Classifications; Compliance: SHOULD
[CID:1644]
Software SHOULD be reviewed or tested by an independent party as well as the developer.
14.4.6.C.03.
ControlSystem Classification(s): All Classifications; Compliance: SHOULD
[CID:1645]
Software development SHOULD follow secure coding practices and agency development standards.
14.5. Web Application Development
Objective
14.5.1. Security mechanisms are incorporated into all Web applications by design and implementation.
Context
Scope
14.5.2. This section covers the deployment of agency Web applications and websites.
Protecting Web servers
14.5.3. 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.
Web application components
14.5.4. 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.
References
14.5.5. Further information on Web application security is available from the Open Web Application Security Project at:
Reference
Title
The Open Web Application
Publisher
OWASP
Source
http://www.owasp.org
Security Project (OWASP) Reference
NZ Digital Government -
DIA
Security and Privacy assurance
https://www.digital.govt.nz/standards
-andguidance/governance/managingonline-channels/security-andprivacy-for-websites/designing-forsecurity-and-privacy/security-andprivacy-assurance/
Web Design and Applications
W3C
http://www.w3.org/standards/webde
sign/
Web Development – Patterns
and Practices
Microsoft
https://msdn.microsoft.com/enus/library/ff921348.aspx
Rationale & Controls
14.5.6.
Agency website content
14.5.6.R.01.
Rationale
Reviewing active content on agency Web servers will assist in identifying and mitigating information security issues.
195
Version_3.5__January-2022
Select target paragraph3
Connect to a paragraph
Connect to an entity
Disable highlights
Add to table of contents