What is really going on in politics? Get our daily email briefing straight to your inbox Sign up Thank you for subscribing We have more newsletters Show me See our privacy notice Invalid Email

Boris Johnson's profile was immediately vandalised with hardcore pornography after a serious security flaw was exposed in the Tory party conference app.

The highly serious blunder allowed anyone to access details of hundreds of MPs including Foreign Secretary Jeremy Hunt and Defence Secretary Gavin Williamson - who have police protection and warn regularly of the hacking threat from Russia.

But it also gave pranksters an opportunity to have fun with the profiles of prominent Conservatives.

Within minutes of the vulnerability being revealed, Boris Johnson’s profile image was changed to a picture of hardcore pornography.

His title was almost immediately changed to “d******d”, and his position edited to say “HARD BORDER”.

Education Secretary Michael Gove's profile picture was changed to one of Rupert Murdoch.

The blunder, revealed by Guardian columnist Dawn Foster, was part of an app that offers a guide to the Conservative Party Conference in Birmingham, which starts tomorrow.

Anyone could log in to the app as any other registered attendee with just an email address, and without requiring any password or security measures whatsoever.

Mischief makers could then see and edit the personal details of whoever they logged in as - be they MPs, journalists or other attendees.

The massive data breach could now leave the Conservative Party open to fines and an investigation by the Information Commissioner.

A Conservative spokesman said: "The technical issue has been resolved and the app is now functioning securely. We are investigating the issue further and apologise for any concern caused."