NHS web page error sent users to malicious websites

NHS sign Hundreds of pages on the NHS site were affected

Related Stories

A "coding error" on the NHS website exposed users to harmful websites rather than health advice.

More than 800 pages on NHS.uk automatically redirected unsuspecting users to pages that contain either malware or advertising.

The affected pages were highlighted by a user who posted details of the problem on Reddit.

In a statement, the NHS said its site had not been maliciously attacked and that it had fixed the problem.

"An internal coding error has caused an incorrect redirect on some pages on NHS Choices since Sunday evening," a statement explained.

"Routine security checks alerted us to this problem on Monday morning at which point we identified the problem and corrected the code."

Typo blamed

Reddit user Muzzers said he had stumbled across an infected page while he had been browsing for information about the flu.

"Digging a bit deeper I found hundreds more pages which redirect to either an advertisement or malware infested page," he wrote.

Users trying to find details on dementia, pregnancy, vaccinations, mental health and other areas also found themselves sent to the malicious pages.

The fault occurred due to a typo within the NHS website's source code.

A developer accidentally wrote "googleaspis.com" rather than "googleapis.com" when creating the site.

The mistake went unnoticed until the incorrectly-spelt address was registered by someone in the Czech Republic over the weekend, and was then used to capitalise on the error.

The NHS said the site would not be completely clear of the problem until later on Monday.

It added: "NHS Choices is treating this issue with urgency and once resolved we plan to undertake a thorough and detailed analysis to ensure that a full code review is undertaken and steps put in place to ensure no reoccurrence."

More on This Story

Related Stories

More Technology stories


Features & Analysis

BBC Future

(Getty Images)

The secret to eternal life

What if we could back-up our brains?


  • A car being driven by Cruise Automation technologyClick Watch

    The tech which could allow any car with an automatic gearbox to become self-driving

Copyright © 2015 BBC. The BBC is not responsible for the content of external sites. Read more.

This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.