News for hackers. Stuff that matters.
Re:Browser auto-fill phishing by jonknee on Thursday January 05, 2017 @01:55PM (#13330169)
> So the browser would have to determine if the item is visible to the user, which is not trivial

This is not terribly difficult, browsers need to know what is visible because they have to actually display it. If an element isn't drawn it shouldn't be autofilled.

Re:Browser auto-fill phishing by choward on Thursday January 05, 2017 @02:14PM (#13330382)
> If an element isn't drawn it shouldn't be autofilled.

So if a form is too long and you need to scroll, all those fields you can't see won't be auto-filled? Sounds pretty terrible IMO.

Re:Browser auto-fill phishing by chinathrow on Thursday January 05, 2017 @03:45PM (#13331228)
To me (as a non autofill user), the published bug sounds way more harmful than a little inconvenience.
Re:Browser auto-fill phishing by elsurudo on Thursday January 05, 2017 @05:00PM (#13331823)
It's not just an inconvenience – it's broken and unexpected UI behaviour.
Re:Browser auto-fill phishing by Jarwain on Thursday January 05, 2017 @09:48PM (#13333520)
Well why not have it autofill on-draw?
Re:Browser auto-fill phishing by onion2k on Friday January 06, 2017 @03:55AM (#13334833)
It'd be easy to move the hidden elements on to the screen when the user clicks the submit button, so they'd be filled in and the form would then be submitted, and the information 'phished'.

The solution to this problem is to inform the user which fields will be completed by autofill, with a "not currently shown" highlight on any fields that are currently off the screen so the user understands what's happening.

Re:Browser auto-fill phishing by Raphmedia on Thursday January 05, 2017 @02:13PM (#13330367)
Well, then simply make them height:0px or put a <div> with a white background over it. Change the input and make it text-color: white; background-color: white; Change it's z-index to be lower than your other elements, etc.
Re:Browser auto-fill phishing by robin_reala on Thursday January 05, 2017 @02:16PM (#13330395)
opacity: 0.01;
Re:Browser auto-fill phishing by vxNsr on Thursday January 05, 2017 @04:02PM (#13331364)
This makes the case that auto fill just ain't that secure, I guess if we use it we just need to accept that.
Re:Browser auto-fill phishing by thecrazyone on Thursday January 05, 2017 @08:24PM (#13333157)
There's no need to "just accept" that it's not secure. We need to make it secure. This is a tedious/hard problem, yes. IMHO we've (people) solved tougher problems :)
Re:Browser auto-fill phishing by ris on Thursday January 05, 2017 @03:03PM (#13330830)

  <div style="font-family: Custom non-printing font 101">
    <input type="text" name="address"/>
    <input type="text" name="ssn"/>
  </div>
Re:Browser auto-fill phishing by matthberg on Thursday January 05, 2017 @08:39PM (#13333223)
Adobe made a font like this, adobe blank: https://github.com/adobe-fonts/adobe-blank
Re:Browser auto-fill phishing by teddyh on Thursday January 05, 2017 @07:32PM (#13332851)
Re:Browser auto-fill phishing by gregable on Thursday January 05, 2017 @02:03PM (#13330270)
Sure, but then the attacker can draw the fields within the 'visible' document, but below the 'fold'. If the browser chooses not to fill fields like that, it breaks a lot of autofill on long pages. Those two cases aren't significantly different.
Re:Browser auto-fill phishing by alexbecker on Thursday January 05, 2017 @02:05PM (#13330285)
Not necessarily. The browser often paints a much larger area than fits in the viewport, then hands it off to the GPU. (This can be cause performance issues for very tall scrollable pages, which is why I've run into it.)
Re:Browser auto-fill phishing by ajkjk on Thursday January 05, 2017 @02:49PM (#13330690)
What if another element is drawn in front of it, and though? I feel like there are a huge number of possible tricks to hide elements on page and trick the browser into thinking they're visible.
Re:Browser auto-fill phishing by PDoyle on Friday January 06, 2017 @07:00AM (#13335653)
How many pixels does an input need to occupy before it's considered "visible"?
Re:Browser auto-fill phishing by EJTH on Friday January 06, 2017 @12:04PM (#13337947)
Problem is that a form might be longer or wider than the viewport, which would result in "hidden" elements in genuine browsers too.
Re:Browser auto-fill phishing by pc86 on Thursday January 05, 2017 @02:03PM (#13330264)
> Should autofill skip regular form elements that are just a little below the viewport?