New issue
Advanced search Search tips

Issue 714458 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug-Security



Sign in to add a comment

Security: URL spoofing

Reported by rayyan...@gmail.com, Apr 23 2017

Issue description

The bug is similar to this:

https://bugzilla.mozilla.org/show_bug.cgi?id=623155

VERSION
Chrome Version: 57.0.2987.133 + [stable]
Operating System: [All]

REPRODUCTION CASE

It looks like the location bar confuses when the URL contains extra prefix other than www - Such as if your domain is https://anything.example.com, It will confuse it with https://www.anything.example.com

PoC: 

https://bughunter.withgoogle.com/ --> It will redirect you to the Vulnerability program page, However, if you try it with https://www.bughunter.withgoogle.com/
it will inform you that your connection is not secure which doesn't make sense, and if it gives you the option to confirm it's certificate It will eventually redirect to Google Vulnerability program. 
 
Labels: Needs-Feedback
Can you please explain specifically what problem you believe you've found?

The specific behavior you've described with regard to the BugHunter site is working as expected.

The https://bughunter.withgoogle.com/ site sends a certificate containing the following SubjectAltNames:
DNS Name=*.appspot.com
DNS Name=*.thinkwithgoogle.com
DNS Name=*.withgoogle.com
DNS Name=*.withyoutube.com
DNS Name=appspot.com
DNS Name=thinkwithgoogle.com
DNS Name=withgoogle.com
DNS Name=withyoutube.com

That means that the certificate is valid for "bughunter.withgoogle.com" and not valid for "www.bughunter.withgoogle.com", because "www.bughunter" does not match "*" as a wildcard value may not contain any dots.

>it will inform you that your connection is not secure which doesn't make sense

This warning is shown because the certificate presented by the server is not valid for the hostname from which it was sent.


Comment 2 by rayyan...@gmail.com, Apr 24 2017

I'm sorry.. What my point really is that: The browser shouldn't treat https://www.anything.example.com and https://anything.example.com different - Why? Because Firstly,  www. is something really general for the websites. Plus,the behavior of almost all of the sites are like this: http://www.mail.yandex.com if you go to this website you'll get eventually redirected to https://mail.yandex.com - This makes the user to believe that https://www.anything.example.com is the same as https://anything.example.com -  Making it user to believe the difference b/w http://www.anything.example.com and https://www.anything.example.com - 

PoC:

If you'll go to mail.google.com You will be redirected to google login page however, if you go to www.mail.google.com - the server is not found.. which means I can register www.mail.google.com (Obviously this i can not register, but there are many other websites like this) and fool around with people. Hope you get my idea of point. Thanks!

Comment 3 by rayyan...@gmail.com, Apr 24 2017

*Making it difficult for the user to differentiate b/w http://www.anything.example.com and https://www.anything.example.com ***
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 24 2017

Cc: elawrence@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "elawrence@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 Deleted

Status: WontFix (was: Unconfirmed)
There's no vulnerability here. The owner of example.com has control of the registration of subdomains, so she can allow (or not) www.example.com, and no other party gets to register it without her permission. You cannot, for example, register www.mail.google.com, because you do not own the google.com domain.

www.anything.example.com and anything.example.com are different hostnames; a server operator may choose to have one site redirect to the other, but they're under no obligation to do so.
Project Member

Comment 7 by sheriffbot@chromium.org, Aug 1 2017

Labels: -Restrict-View-SecurityTeam allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment