Ambient light sensors can steal sensitive browser data

APIs can be used to figure out visited links and QR codes

Sensors used in smartphones, tablets and laptops to detect ambient light levels can used to steal data from browsers, according to a security researcher.

These sensors have been growing in use over the last decade to detect surrounding light levels and adjust display brightness to save battery power. However, in a blog post, independent researcher and W3C Invited Expert Lukasz Olejnik said that an API developed by the World Wide Web Consortium (W3C) to enable websites to interact with these sensors could be used to gather information from users. This API does not ask permission from a user to access sensors.

Advertisement - Article continues below

Olejnik said that the colour of the user's screen can carry useful information which websites are prevented from directly accessing for security reasons. As well as that, light sensor readings allow an attacker to distinguish between different screen colours.

He said that a hacker could find out what URLs a victim has visited in the past (as these are normally a different colour) by detecting any variations the sensors pick up.

"Potentially more troubling is the fact that attackers can extract pixel-perfect representations of cross-origin images and frames: essentially, discover how a given site or image looks for the attacked user," he said.

Advertisement
Advertisement - Article continues below

"In extreme cases, for example on sites which use account recovery QR codes for emergency access to an account," he added. "This could allow the attacker to hijack the victim's account." 

At present, such sensor readings are blocked in Chrome, but supported in Firefox. He said that mitigating such attacks would be a case of requiring browsers to limit both the frequency of sensor readings (to much less than 60Hz) and the precision of sensor output (quantize the result). While these wouldn't completely stop such attacks, they would make them take longer to execute, making them impractical to carry out.

Advertisement - Article continues below

"Perhaps the most obvious solution is to require the user to grant permission to the website requesting access to the sensor, as is already the case for other features such as geolocation. It would also be prudent to expand the security and privacy considerations section in the Ambient Light Sensor API specifications to document the risk of attacks such as this one," he said.

Featured Resources

Top 5 challenges of migrating applications to the cloud

Explore how VMware Cloud on AWS helps to address common cloud migration challenges

Download now

3 reasons why now is the time to rethink your network

Changing requirements call for new solutions

Download now

All-flash buyer’s guide

Tips for evaluating Solid-State Arrays

Download now

Enabling enterprise machine and deep learning with intelligent storage

The power of AI can only be realised through efficient and performant delivery of data

Download now
Advertisement

Most Popular

Visit/infrastructure/server-storage/355118/hpe-warns-of-critical-bug-that-destroys-ssds-after-40000-hours
Server & storage

HPE warns of 'critical' bug that destroys SSDs after 40,000 hours

26 Mar 2020
Visit/software/video-conferencing/355138/zoom-beaming-ios-user-data-to-facebook-for-targeted-ads
video conferencing

Zoom beams iOS user data to Facebook for targeted ads

27 Mar 2020
Visit/software/355113/companies-offering-free-software-to-fight-covid-19
Software

These are the companies offering free software during the coronavirus crisis

25 Mar 2020
Visit/mobile/mobile-phones/355088/apple-lifts-iphone-purchase-restrictions
Mobile Phones

Apple lifts iPhone purchase restrictions

23 Mar 2020