Security Assessment Report
REPORT   7bb868bc-57f7-4568-ac6d-06a80a4bb0bc
ISSUED   2026-07-31 14:00 UTC
CONFIDENTIAL
External Web & Network Assessment

Vulnerability findings for the public-facing infrastructure of lms-dev.kznhealth.gov.za

Target: https://lms-dev.kznhealth.gov.za/  ·  102.37.142.102

01   Executive overview Severity distribution across 29 findings

Critical
0
High
0
Medium
4
Low
14
Informational
11
Targethttps://lms-dev.kznhealth.gov.za/
Resolved IP102.37.142.102
Scan window2026-07-31 · 14:00:43 UTC
Toolshttpx · nmap · nuclei · zap

02   Top findings Ranked by severity

Highest-impact issues identified during the assessment (non-informational), ordered by severity.

# Severity Finding Affected Instances
01 Medium Absence of Anti-CSRF Tokens lms-dev.kznhealth.gov.za 5
02 Medium Behat Configuration File - Detect https://lms-dev.kznhealth.gov.za/behat.yml.dist 1
03 Medium Content Security Policy (CSP) Header Not Set lms-dev.kznhealth.gov.za 5
04 Medium Sub Resource Integrity Attribute Missing lms-dev.kznhealth.gov.za 5
05 Low Big Redirect Detected (Potential Sensitive Information Leak) lms-dev.kznhealth.gov.za 4
06 Low Cookie with SameSite Attribute None lms-dev.kznhealth.gov.za 1
07 Low Cookie without SameSite Attribute lms-dev.kznhealth.gov.za 1
08 Low Cross-Domain JavaScript Source File Inclusion lms-dev.kznhealth.gov.za 5
09 Low Cross-Origin-Embedder-Policy Header Missing or Invalid lms-dev.kznhealth.gov.za 3
10 Low Cross-Origin-Opener-Policy Header Missing or Invalid lms-dev.kznhealth.gov.za 3
11 Low Cross-Origin-Resource-Policy Header Missing or Invalid lms-dev.kznhealth.gov.za 5
12 Low Dangerous JS Functions lms-dev.kznhealth.gov.za 2
13 Low In Page Banner Information Leak lms-dev.kznhealth.gov.za 2
14 Low Permissions Policy Header Not Set lms-dev.kznhealth.gov.za 5
15 Low Server Leaks Version Information via "Server" HTTP Response Header Field lms-dev.kznhealth.gov.za 5
16 Low Strict-Transport-Security Header Not Set lms-dev.kznhealth.gov.za 5
17 Low Timestamp Disclosure - Unix lms-dev.kznhealth.gov.za 1
18 Low X-Content-Type-Options Header Missing lms-dev.kznhealth.gov.za 5
19 Informational Authentication Request Identified lms-dev.kznhealth.gov.za 4
20 Informational Information Disclosure - Suspicious Comments lms-dev.kznhealth.gov.za 11
21 Informational Modern Web Application lms-dev.kznhealth.gov.za 5
22 Informational Non-Storable Content lms-dev.kznhealth.gov.za 5
23 Informational Re-examine Cache-control Directives lms-dev.kznhealth.gov.za 2
24 Informational Session Management Response Identified lms-dev.kznhealth.gov.za 2
25 Informational Storable and Cacheable Content lms-dev.kznhealth.gov.za 4

03   Findings Detailed observations, ordered by severity

Each finding records what was observed, where it was observed, and supporting evidence from the scanning toolchain.

M-01

Absence of Anti-CSRF Tokens

Medium Moderate fix zap CVE-352
CONFIDENCE   Low
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/login/forgot_password.php
What was found

No Anti-CSRF tokens were found in a HTML submission form.

A cross-site request forgery is an attack that involves forcing a victim to send an HTTP request to a target destination without their knowledge or intent in order to perform an action as the victim. The underlying cause is application functionality using predictable URL/form actions in a repeatable way. The nature of the attack is that CSRF exploits the trust that a web site has for a user. By contrast, cross-site scripting (XSS) exploits the trust that a user has for a web site. Like XSS, CSRF attacks are not necessarily cross-site, but they can be. Cross-site request forgery is also known as CSRF, XSRF, one-click attack, session riding, confused deputy, and sea surf.

CSRF attacks are effective in a number of situations, including:

* The victim has an active session on the target site.

* The victim is authenticated via HTTP auth on the target site.

* The victim is on the same local network as the target site.

CSRF has primarily been used to perform an action against a target site using the victim's privileges, but recent techniques have been discovered to disclose information by gaining access to the response. The risk of information disclosure is dramatically increased when the target site is vulnerable to XSS, because XSS can be used as a platform for CSRF, allowing the attack to operate within the bounds of the same-origin policy.

Evidence
https://lms-dev.kznhealth.gov.za/login/forgot_password.php<form autocomplete="off" action="https://lms-dev.kznhealth.gov.za/login/forgot_password.php" method="post" accept-charset="utf-8" id="mform1_QGOcIDgtv7Pg7F0" class="mform">
https://lms-dev.kznhealth.gov.za/login/index.php<form action="https://lms-dev.kznhealth.gov.za/login/index.php" method="post" id="guestlogin">
https://lms-dev.kznhealth.gov.za/login/index.php<form class="login-form" action="https://lms-dev.kznhealth.gov.za/login/index.php" method="post" id="login">
https://lms-dev.kznhealth.gov.za/login/index.php<form action="https://lms-dev.kznhealth.gov.za/login/index.php" method="post" id="guestlogin">
https://lms-dev.kznhealth.gov.za/login/index.php<form class="login-form" action="https://lms-dev.kznhealth.gov.za/login/index.php" method="post" id="login">
Suggested remediation

Phase: Architecture and Design

Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

For example, use anti-CSRF packages such as the OWASP CSRFGuard.

Phase: Implementation

Ensure that your application is free of cross-site scripting issues, because most CSRF defenses can be bypassed using attacker-controlled script.

Phase: Architecture and Design

Generate a unique nonce for each form, place the nonce into the form, and verify the nonce upon receipt of the form. Be sure that the nonce is not predictable (CWE-330).

Note that this can be bypassed using XSS.

Identify especially dangerous operations. When the user performs a dangerous operation, send a separate confirmation request to ensure that the user intended to perform that operation.

Note that this can be bypassed using XSS.

Use the ESAPI Session Management control.

This control includes a component for CSRF.

Do not use the GET method for any request that triggers a state change.

Phase: Implementation

Check the HTTP Referer header to see if the request originated from an expected page. This could break legitimate functionality, because users or proxies may have disabled sending the Referer for privacy reasons.

References
  • https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html
  • https://cwe.mitre.org/data/definitions/352.html
M-02

Behat Configuration File - Detect

Medium nuclei
CONFIDENCE   —
INSTANCES   1
SYSTEMIC   —
Endpoint
https://lms-dev.kznhealth.gov.za/behat.yml.dist
What was found

Behat Configuration File - Detect

Evidence
nuclei raw{ "template": "http/exposures/configs/behat-config.yaml", "template-url": "https://cloud.projectdiscovery.io/public/behat-config", "template-id": "behat-config", "template-path": "/root/nuclei-templates/http/exposures/configs/behat-config.yaml", "info": { "name": "Behat Configuration File - Detect", "author": [ "dhiyaneshdk" ], "tags": [ "exposure", "behat", "devops", "cicd", "vuln" ], "description": "Behat configuration file was detected.", "reference": [ "https://docs.behat.org/en/v2.5/guides/7.config.html" ], "severity": "medium", "metadata": { "verified": true, "max-request": 2, "shodan-query": "html:\"behat.yml\"" }, "classification": { "cve-id": null, "cwe-id": [ "cwe-200" ], "cvss-metrics": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "cvss-score": 5.3 } }, "type": "http", "host": "lms-dev.kznhealth.gov.za", "port": "443", "scheme": "https", "url": "https://lms-dev.kznhealth.gov.za/", "path": "/", "matched-at": "https://lms-dev.kznhealth.gov.za/behat.yml.dist", "request": "GET /behat.yml.dist HTTP/1.1\r\nHost: lms-dev.kznhealth.gov.za\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36\r\nConnection: close\r\nAccept: */*\r\nAccept-Language: en\r\nAccept-Encoding: gzip\r\n\r\n", "response": "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: 311\r\nAccept-Ranges: bytes\r\nContent-Type: application/vnd.apple.installer+xml\r\nDate: Fri, 31 Jul 2026 13:58:50 GMT\r\nEtag: \"137-63d2c22c9d3ef\"\r\nLast-Modified: Mon, 25 Aug 2025 08:13:51 GMT\r\nServer: Apache/2.4.52 (Ubuntu)\r\n\r\ndefault:\n suites:\n default:\n paths: { }\n contexts: { }\n extensions:\n Behat\\MinkExtension:\n base_url: 'http://localhost:8000'\n browserkit_http: null\n webdriver: null\n Moodle\\BehatExtension:\n moodledirroot: /Should/Change/To/Moodle/www/dir\n steps_definitions: { }\n", "ip": "102.37.142.102", "timestamp": "2026-07-31T13:58:50.243499389Z", "curl-command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36' 'https://lms-dev.kznhealth.gov.za/behat.yml.dist'", "matcher-status": true }
M-03

Content Security Policy (CSP) Header Not Set

Medium Moderate fix zap CVE-693
CONFIDENCE   High
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/
What was found

Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.

Evidence
https://lms-dev.kznhealth.gov.za/
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.php
https://lms-dev.kznhealth.gov.za/login/index.php
https://lms-dev.kznhealth.gov.za/robots.txt
https://lms-dev.kznhealth.gov.za/sitemap.xml
Suggested remediation

Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header.

References
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP
  • https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html
  • https://www.w3.org/TR/CSP/
  • https://w3c.github.io/webappsec-csp/
  • https://web.dev/articles/csp
  • https://caniuse.com/#feat=contentsecuritypolicy
  • https://content-security-policy.com/
M-04

Sub Resource Integrity Attribute Missing

Medium Moderate fix zap CVE-345
CONFIDENCE   High
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/
What was found

The integrity attribute is missing on a script or link tag served by an external server. The integrity tag prevents an attacker who have gained access to this server from injecting a malicious content.

Evidence
https://lms-dev.kznhealth.gov.za/<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/login/forgot_password.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/login/index.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/login/index.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
Suggested remediation

Provide a valid integrity attribute to the tag.

References
  • https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Subresource_Integrity
L-01

Big Redirect Detected (Potential Sensitive Information Leak)

Low Moderate fix zap CVE-201
CONFIDENCE   Medium
INSTANCES   4
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/calendar/view.php?course=1&time=1785505778&view=month
What was found

The server has responded with a redirect that seems to provide a large response. This may indicate that although the server sent a redirect it also responded with body content (which may include sensitive details, PII, etc.).

Evidence
https://lms-dev.kznhealth.gov.za/calendar/view.php?course=1&time=1785505778&view=month
https://lms-dev.kznhealth.gov.za/calendar/view.php?time=1780264800&view=month
https://lms-dev.kznhealth.gov.za/login/index.php
https://lms-dev.kznhealth.gov.za/login/index.php
Suggested remediation

Ensure that no sensitive information is leaked via redirect responses. Redirect responses should have almost no content.

L-02

Cookie with SameSite Attribute None

Low Moderate fix zap CVE-1275
CONFIDENCE   Medium
INSTANCES   1
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
MoodleSession
What was found

A cookie has been set with its SameSite attribute set to "none", which means that the cookie can be sent as a result of a 'cross-site' request. The SameSite attribute is an effective counter measure to cross-site request forgery, cross-site script inclusion, and timing attacks.

Evidence
https://lms-dev.kznhealth.gov.za/Set-Cookie: MoodleSession
Suggested remediation

Ensure that the SameSite attribute is set to either 'lax' or ideally 'strict' for all cookies.

References
  • https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site
L-03

Cookie without SameSite Attribute

Low Moderate fix zap CVE-1275
CONFIDENCE   Medium
INSTANCES   1
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
MoodleSession
What was found

A cookie has been set without the SameSite attribute, which means that the cookie can be sent as a result of a 'cross-site' request. The SameSite attribute is an effective counter measure to cross-site request forgery, cross-site script inclusion, and timing attacks.

Evidence
https://lms-dev.kznhealth.gov.za/Set-Cookie: MoodleSession
Suggested remediation

Ensure that the SameSite attribute is set to either 'lax' or ideally 'strict' for all cookies.

References
  • https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site
L-04

Cross-Domain JavaScript Source File Inclusion

Low Moderate fix zap CVE-829
CONFIDENCE   Medium
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured
What was found

The page includes one or more script files from a third-party domain.

Evidence
https://lms-dev.kznhealth.gov.za/<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/login/forgot_password.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/login/index.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
https://lms-dev.kznhealth.gov.za/login/index.php<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
Suggested remediation

Ensure JavaScript source files are loaded from only trusted sources, and the sources can't be controlled by end users of the application.

L-05

Cross-Origin-Embedder-Policy Header Missing or Invalid

Low Moderate fix zap CVE-693
CONFIDENCE   Medium
INSTANCES   3
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
Cross-Origin-Embedder-Policy
What was found

Cross-Origin-Embedder-Policy header is a response header that prevents a document from loading any cross-origin resources that don't explicitly grant the document permission (using CORP or CORS).

Evidence
https://lms-dev.kznhealth.gov.za/Cross-Origin-Embedder-Policy
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.phpCross-Origin-Embedder-Policy
https://lms-dev.kznhealth.gov.za/login/index.phpCross-Origin-Embedder-Policy
Suggested remediation

Ensure that the application/web server sets the Cross-Origin-Embedder-Policy header appropriately, and that it sets the Cross-Origin-Embedder-Policy header to 'require-corp' for documents.

If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Embedder-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-embedder-policy).

References
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy
L-06

Cross-Origin-Opener-Policy Header Missing or Invalid

Low Moderate fix zap CVE-693
CONFIDENCE   Medium
INSTANCES   3
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
Cross-Origin-Opener-Policy
What was found

Cross-Origin-Opener-Policy header is a response header that allows a site to control if others included documents share the same browsing context. Sharing the same browsing context with untrusted documents might lead to data leak.

Evidence
https://lms-dev.kznhealth.gov.za/Cross-Origin-Opener-Policy
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.phpCross-Origin-Opener-Policy
https://lms-dev.kznhealth.gov.za/login/index.phpCross-Origin-Opener-Policy
Suggested remediation

Ensure that the application/web server sets the Cross-Origin-Opener-Policy header appropriately, and that it sets the Cross-Origin-Opener-Policy header to 'same-origin' for documents.

'same-origin-allow-popups' is considered as less secured and should be avoided.

If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Opener-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-opener-policy).

References
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Opener-Policy
L-07

Cross-Origin-Resource-Policy Header Missing or Invalid

Low Easy fix zap CVE-693
CONFIDENCE   Medium
INSTANCES   5
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
Cross-Origin-Resource-Policy
What was found

Cross-Origin-Resource-Policy header is an opt-in header designed to counter side-channels attacks like Spectre. Resource should be specifically set as shareable amongst different origins.

Evidence
https://lms-dev.kznhealth.gov.za/Cross-Origin-Resource-Policy
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.phpCross-Origin-Resource-Policy
https://lms-dev.kznhealth.gov.za/login/index.phpCross-Origin-Resource-Policy
https://lms-dev.kznhealth.gov.za/theme/image.php/boost/theme/1783670440/faviconCross-Origin-Resource-Policy
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.cssCross-Origin-Resource-Policy
Suggested remediation

Ensure that the application/web server sets the Cross-Origin-Resource-Policy header appropriately, and that it sets the Cross-Origin-Resource-Policy header to 'same-origin' for all web pages.

'same-site' is considered as less secured and should be avoided.

If resources must be shared, set the header to 'cross-origin'.

If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Resource-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-resource-policy).

References
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy
L-08

Dangerous JS Functions

Low Moderate fix zap CVE-749
CONFIDENCE   Low
INSTANCES   2
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/lib/javascript.php/1783670440/lib/requirejs/require.min.js
What was found

A dangerous JS function seems to be in use that would leave the site vulnerable.

Evidence
https://lms-dev.kznhealth.gov.za/lib/javascript.php/1783670440/lib/requirejs/require.min.jseval(
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.jseval(
Suggested remediation

See the references for security advice on the use of these functions.

References
  • https://v17.angular.io/guide/security
L-09

In Page Banner Information Leak

Low Moderate fix zap CVE-497
CONFIDENCE   High
INSTANCES   2
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/robots.txt
What was found

The server returned a version banner string in the response content. Such information leaks may allow attackers to further target specific issues impacting the product and version in use.

Evidence
https://lms-dev.kznhealth.gov.za/robots.txtApache/2.4.52
https://lms-dev.kznhealth.gov.za/sitemap.xmlApache/2.4.52
Suggested remediation

Configure the server to prevent such information leaks. For example:

Under Tomcat this is done via the "server" directive and implementation of custom error pages.

Under Apache this is done via the "ServerSignature" and "ServerTokens" directives.

References
  • https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/
L-10

Permissions Policy Header Not Set

Low Moderate fix zap CVE-693
CONFIDENCE   Medium
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/
What was found

Permissions Policy Header is an added layer of security that helps to restrict from unauthorized access or usage of browser/client features by web resources. This policy ensures the user privacy by limiting or specifying the features of the browsers can be used by the web resources. Permissions Policy provides a set of standard HTTP headers that allow website owners to limit which features of browsers can be used by the page such as camera, microphone, location, full screen etc.

Evidence
https://lms-dev.kznhealth.gov.za/
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.php
https://lms-dev.kznhealth.gov.za/login/index.php
https://lms-dev.kznhealth.gov.za/robots.txt
https://lms-dev.kznhealth.gov.za/sitemap.xml
Suggested remediation

Ensure that your web server, application server, load balancer, etc. is configured to set the Permissions-Policy header.

References
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy
  • https://developer.chrome.com/blog/feature-policy/
  • https://scotthelme.co.uk/a-new-security-header-feature-policy/
  • https://w3c.github.io/webappsec-feature-policy/
  • https://www.smashingmagazine.com/2018/12/feature-policy/
L-11

Server Leaks Version Information via "Server" HTTP Response Header Field

Low Moderate fix zap CVE-497
CONFIDENCE   High
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/calendar/view.php?course=1&time=1785505778&view=month
What was found

The web/application server is leaking version information via the "Server" HTTP response header. Access to such information may facilitate attackers identifying other vulnerabilities your web/application server is subject to.

Evidence
https://lms-dev.kznhealth.gov.za/calendar/view.php?course=1&time=1785505778&view=monthApache/2.4.52 (Ubuntu)
https://lms-dev.kznhealth.gov.za/calendar/view.php?time=1780264800&view=monthApache/2.4.52 (Ubuntu)
https://lms-dev.kznhealth.gov.za/robots.txtApache/2.4.52 (Ubuntu)
https://lms-dev.kznhealth.gov.za/sitemap.xmlApache/2.4.52 (Ubuntu)
https://lms-dev.kznhealth.gov.za/theme/image.php/boost/theme/1783670440/faviconApache/2.4.52 (Ubuntu)
Suggested remediation

Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.

References
  • https://httpd.apache.org/docs/current/mod/core.html#servertokens
  • https://learn.microsoft.com/en-us/previous-versions/msp-n-p/ff648552(v=pandp.10)
  • https://www.troyhunt.com/shhh-dont-let-your-response-headers/
L-12

Strict-Transport-Security Header Not Set

Low Moderate fix zap CVE-319
CONFIDENCE   High
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/login/index.php
What was found

HTTP Strict Transport Security (HSTS) is a web security policy mechanism whereby a web server declares that complying user agents (such as a web browser) are to interact with it using only secure HTTPS connections (i.e. HTTP layered over TLS/SSL). HSTS is an IETF standards track protocol and is specified in RFC 6797.

Evidence
https://lms-dev.kznhealth.gov.za/login/index.php
https://lms-dev.kznhealth.gov.za/robots.txt
https://lms-dev.kznhealth.gov.za/sitemap.xml
https://lms-dev.kznhealth.gov.za/theme/image.php/boost/theme/1783670440/favicon
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.css
Suggested remediation

Ensure that your web server, application server, load balancer, etc. is configured to enforce Strict-Transport-Security.

References
  • https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html
  • https://owasp.org/www-community/Security_Headers
  • https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  • https://caniuse.com/stricttransportsecurity
  • https://datatracker.ietf.org/doc/html/rfc6797
L-13

Timestamp Disclosure - Unix

Low Moderate fix zap CVE-497
CONFIDENCE   Low
INSTANCES   1
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/login/index.php
What was found

A timestamp was disclosed by the application/web server. - Unix

Evidence
https://lms-dev.kznhealth.gov.za/login/index.php1783670440
Suggested remediation

Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.

References
  • https://cwe.mitre.org/data/definitions/200.html
L-14

X-Content-Type-Options Header Missing

Low Moderate fix zap CVE-693
CONFIDENCE   Medium
INSTANCES   5
SYSTEMIC   Yes
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
x-content-type-options
What was found

The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.

Evidence
https://lms-dev.kznhealth.gov.za/x-content-type-options
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.phpx-content-type-options
https://lms-dev.kznhealth.gov.za/login/index.phpx-content-type-options
https://lms-dev.kznhealth.gov.za/theme/image.php/boost/theme/1783670440/faviconx-content-type-options
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.cssx-content-type-options
Suggested remediation

Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.

If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.

References
  • https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85)
  • https://owasp.org/www-community/Security_Headers
X-01

Authentication Request Identified

Informational Moderate fix zap CVE--1
CONFIDENCE   High
INSTANCES   4
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/login/forgot_password.php
Parameter
email
What was found

The given request has been identified as an authentication request. The 'Other Info' field contains a set of key=value lines which identify any relevant fields. If the request is in a context which has an Authentication Method set to "Auto-Detect" then this rule will change the authentication to match the request identified.

Evidence
https://lms-dev.kznhealth.gov.za/login/forgot_password.php_qf__login_forgot_password_form
https://lms-dev.kznhealth.gov.za/login/forgot_password.php_qf__login_forgot_password_form
https://lms-dev.kznhealth.gov.za/login/index.phppassword
https://lms-dev.kznhealth.gov.za/login/index.phppassword
Suggested remediation

This is an informational alert rather than a vulnerability and so there is nothing to fix.

References
  • https://www.zaproxy.org/docs/desktop/addons/authentication-helper/auth-req-id/
X-02

Information Disclosure - Suspicious Comments

Informational Moderate fix zap CVE-615
CONFIDENCE   Medium
INSTANCES   11
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js
What was found

The response appears to contain suspicious comments which may help an attacker.

Evidence
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js YUI({ debug: true, comb
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js that setting it in user configuration preve
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js// (https://bugs.webkit.org/show_bug
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js// FIXME: need to support '6
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js// handled later on.
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js//TODO I hate this entire
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.jsMLElementCollection bug).
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.jsber when YUI is run from the develop
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.jsh as `<form>` and `<select>` elements, are not
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.jshod is in "mashups" where several third-party
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.jswithout a following query string). If the fil
Suggested remediation

Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.

X-03

Modern Web Application

Informational Moderate fix zap CVE--1
CONFIDENCE   Medium
INSTANCES   5
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
What was found

The application appears to be a modern web application. If you need to explore it automatically then the Client Spider may well be more effective than the standard one.

Evidence
https://lms-dev.kznhealth.gov.za/<a class="dropdown-toggle nav-link " href="#" id="moremenu-dropdown-6a6ca7f24e6f8" role="menuitem" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="-1"> More </a>
https://lms-dev.kznhealth.gov.za/<a class="dropdown-toggle nav-link " href="#" id="moremenu-dropdown-6a6ca7f29ef3e" role="menuitem" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="-1"> More </a>
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.php<a class="dropdown-toggle nav-link " href="#" id="moremenu-dropdown-6a6ca7f2f06eb" role="menuitem" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="-1"> More </a>
https://lms-dev.kznhealth.gov.za/login/index.php<a href="#" id="loginerrormessage" class="sr-only">Invalid login, please try again</a>
https://lms-dev.kznhealth.gov.za/login/index.php<a href="#" id="loginerrormessage" class="sr-only">Invalid login, please try again</a>
Suggested remediation

This is an informational alert and so no changes are required.

X-04

Non-Storable Content

Informational Moderate fix zap CVE-524
CONFIDENCE   Medium
INSTANCES   5
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
What was found

The response contents are not storable by caching components such as proxy servers. If the response does not contain sensitive, personal or user-specific information, it may benefit from being stored and cached, to improve performance.

Evidence
https://lms-dev.kznhealth.gov.za/no-store
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.phpprivate
https://lms-dev.kznhealth.gov.za/calendar/view.php?course=1&time=1785505778&view=monthno-store
https://lms-dev.kznhealth.gov.za/calendar/view.php?time=1780264800&view=monthno-store
https://lms-dev.kznhealth.gov.za/login/index.phpno-store
Suggested remediation

The content may be marked as storable by ensuring that the following conditions are satisfied:

The request method must be understood by the cache and defined as being cacheable ("GET", "HEAD", and "POST" are currently defined as cacheable)

The response status code must be understood by the cache (one of the 1XX, 2XX, 3XX, 4XX, or 5XX response classes are generally understood)

The "no-store" cache directive must not appear in the request or response header fields

For caching by "shared" caches such as "proxy" caches, the "private" response directive must not appear in the response

For caching by "shared" caches such as "proxy" caches, the "Authorization" header field must not appear in the request, unless the response explicitly allows it (using one of the "must-revalidate", "public", or "s-maxage" Cache-Control response directives)

In addition to the conditions above, at least one of the following conditions must also be satisfied by the response:

It must contain an "Expires" header field

It must contain a "max-age" response directive

For "shared" caches such as "proxy" caches, it must contain a "s-maxage" response directive

It must contain a "Cache Control Extension" that allows it to be cached

It must have a status code that is defined as cacheable by default (200, 203, 204, 206, 300, 301, 404, 405, 410, 414, 501).

References
  • https://datatracker.ietf.org/doc/html/rfc7234
  • https://datatracker.ietf.org/doc/html/rfc7231
  • https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
X-05

Re-examine Cache-control Directives

Informational Moderate fix zap CVE-525
CONFIDENCE   Low
INSTANCES   2
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.php
Parameter
cache-control
What was found

The cache-control header has not been set properly or is missing, allowing the browser and proxies to cache content. For static assets like css, js, or image files this might be intended, however, the resources should be reviewed to ensure that no sensitive content will be cached.

Evidence
https://lms-dev.kznhealth.gov.za/admin/tool/dataprivacy/summary.phpprivate, pre-check=0, post-check=0, max-age=0, no-transform
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpprivate, pre-check=0, post-check=0, max-age=0, no-transform
Suggested remediation

For secure content, ensure the cache-control HTTP header is set with "no-cache, no-store, must-revalidate". If an asset should be cached consider setting the directives "public, max-age, immutable".

References
  • https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#web-content-caching
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control
  • https://grayduck.mn/2021/09/13/cache-control-recommendations/
X-06

Session Management Response Identified

Informational Moderate fix zap CVE--1
CONFIDENCE   Medium
INSTANCES   2
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/
Parameter
MoodleSession
What was found

The given response has been identified as containing a session management token. The 'Other Info' field contains a set of header tokens that can be used in the Header Based Session Management Method. If the request is in a context which has a Session Management Method set to "Auto-Detect" then this rule will change the session management to use the tokens identified.

Evidence
https://lms-dev.kznhealth.gov.za/MoodleSession
https://lms-dev.kznhealth.gov.za/MoodleSession
Suggested remediation

This is an informational alert rather than a vulnerability and so there is nothing to fix.

References
  • https://www.zaproxy.org/docs/desktop/addons/authentication-helper/session-mgmt-id/
X-07

Storable and Cacheable Content

Informational Moderate fix zap CVE-524
CONFIDENCE   Medium
INSTANCES   4
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/lib/javascript.php/1783670440/lib/requirejs/require.min.js
What was found

The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where "shared" caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.

Evidence
https://lms-dev.kznhealth.gov.za/lib/javascript.php/1783670440/lib/requirejs/require.min.jsmax-age=7776000
https://lms-dev.kznhealth.gov.za/robots.txt
https://lms-dev.kznhealth.gov.za/theme/image.php/boost/theme/1783670440/faviconmax-age=7776000
https://lms-dev.kznhealth.gov.za/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.cssmax-age=31104000
Suggested remediation

Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:

Cache-Control: no-cache, no-store, must-revalidate, private

Pragma: no-cache

Expires: 0

This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.

References
  • https://datatracker.ietf.org/doc/html/rfc7234
  • https://datatracker.ietf.org/doc/html/rfc7231
  • https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
X-08

User Controllable HTML Element Attribute (Potential XSS)

Informational Moderate fix zap CVE-20
CONFIDENCE   Low
INSTANCES   10
SYSTEMIC   No
Endpoint
https://lms-dev.kznhealth.gov.za/login/forgot_password.php
Parameter
email
What was found

This check looks at user-supplied input in query string parameters and POST data to identify where certain HTML attribute values might be controlled. This provides hot-spot detection for XSS (cross-site scripting) that will require further review by a security analyst to determine exploitability.

Evidence
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpemail
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpsesskey
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpsubmitbuttonemail
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpusername
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpemail
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpsesskey
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpsubmitbuttonusername
https://lms-dev.kznhealth.gov.za/login/forgot_password.phpusername
https://lms-dev.kznhealth.gov.za/login/index.phppassword
https://lms-dev.kznhealth.gov.za/login/index.phpusername
Suggested remediation

Validate all input and sanitize output it before writing to any HTML attributes.

References
  • https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html

04   Network & transport 3 observations

#EndpointServiceDetailSeverity
N-01 102.37.142.102:443 https Service https on 102.37.142.102:443/tcp Info
N-02 102.37.142.102:80 http Service http on 102.37.142.102:80/tcp Info
N-03 https://lms-dev.kznhealth.gov.za/ Status 200 Apache HTTP Server:2.4.52, MathJax:2.7.9, Moodle, PHP, RequireJS, Ubuntu, jsDelivr Info

05   Additional informational findings 0 items

#FindingAffectedInstances