jacobwb/hashover-next

New comments are autofilled with login details of previous commenter

EMplIFil opened this issue · 5 comments

Came across a weird issue recently.

First, I had a spammer make a few spam posts. Let's suppose the name was "Brad".

Second, a new post was made by a different user making a legitimate comment, but the name was still suspiciously, "Brad".

I looked into it, and it turns out that User 1 (the spammer) had a different IP address than User 2 (the legitimate user). I then wondered why they would have used the same name, which was quite unique. Both IP addresses were associated with different countries. Not a guarantee they were different users, but read on...

User 2 (legitimate user) entered their email, and I assume that was associated with a password as they opted to be notified of responses.

On the other hand, User 1 (spammer) did not enter an email.

Third, upon further investigation, I tried to open a random page on my site using an incognito window. To my astonishment, I saw all 3 fields autofilled:

  1. Name ("Brad")
  2. Password (dots)
  3. Email (the email of User 2)

So, it seems like the reason why User 2 had the same name as User 1 was because it was simply autofilled and they didn't bother to enter any information there.

And now, when new commenters visit the site, they're seeing all of this info from previous users.

*Edit: In addition, using this autofilled information, I can make comments which are posted under User 2's email and User 1's name, when in fact I am neither of those users.

I get that you could easily enter anyone's name into the name field, but email too? Especially when it is associated with a password? And why would someone else's info be autofilled in my browser?

How did this happen? Why did this happen?

*Edit 2: Oddly, it only happens in Chrome (even under different Google accounts), but not in Safari or Firefox.

Thanks for the quick response.

Currently it's set to "Cookies Login".

So, I tried this on a different computer with Chrome. At first, the login details weren't filled in.

Then I suspected it could be due to my LastPass extension. So I installed that, and the other users' login details were filled in again.

Looks like it's an issue with LastPass and not Hashover, or perhaps some combination of the two? Still, that is very bizarre.

The LastPass extension shows a list of accounts when you click it, but interestingly, the details for the other user do not appear there.

They only appear in the name / password / email boxes of the Hashover UI. I'm stumped.

da2x commented

This could be a caching issue too. An intermediary cache/proxy/CDN/etc. could be caching a personalized/logged in page.