New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 700385 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Feature



Sign in to add a comment

XHR requests bypass URLBlacklist policy

Reported by ad...@cvalka.info, Mar 10 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Set "URLBlacklist" policy to "example/path1"
2. Make an XHR request to "example/path1" 

What is the expected behavior?
The XHR request should fail

What went wrong?
The XHR request was not blocked by the "URLBlacklist" policy

Did this work before? No 

Chrome version: 56.0.2924.87  Channel: n/a
OS Version: 
Flash Version:

 

Comment 1 by ad...@cvalka.info, Mar 10 2017

Instead of "example/path1" use "example.com/path1"

Comment 2 by mmenke@chromium.org, Mar 10 2017

I'll defer to the policy owners on whether this is desired behavior, but currently, in terms of requests with responses sent to the renderer process, the blacklist is only applied to frame navigations (Main frames and subframes).
This is probably the same problem as crbug.com/691125.
Cc: mzheng@chromium.org blumberg@chromium.org pastarmovj@chromium.org ligim...@chromium.org
Labels: M-56
Unfortunately its working as intended. Steps followed.

1. Server: 
   Set the policy value : youtube/channel in "Block access to a list of 
   URLs"
2. Client:Navigated to 
    https://www.youtube.com/channel/, 
    https://www.youtube.com/,
    https://youtube/channel 

Observed : All the above links are blocked, which is expected.
OS: Win 7 client , Win 2012 Server
Chrome Version: 57.0.2987.98

Also looping to enterprise experts for further updates.

Comment 5 by ad...@cvalka.info, Mar 11 2017

I do not understand the Comment #4 and its relevancy to this discussion.
Hi admin,

I know you are giving a rather generic example and your concrete urls might look differenly but I still have to ask this - are you specifying the urls to be blocked according to the guidelines here https://www.chromium.org/administrators/url-blacklist-filter-format ?

Best,
Julian 
Cc: dskaram@chromium.org cyrusm@chromium.org
Labels: -Type-Bug OS-All Type-Feature
Owner: dskaram@chromium.org
+cyrus/dskaram - from a product standpoint, we enforce URL blacklists on top level URLs and frames, but not on individual XHR requests or requests using extension socket APIs, etc. I suspect it also doesn't apply to subresource requests (so, images, JS blobs, etc) but we'd have to verify this.

Should we change this behavior to include XHR requests and other subresource requests? Or leave it as-is to cover only frames? I don't think we know currently whether changing this behavior would break sites because we don't know how many subresource requests are being allowed through that would otherwise be blocked.

Comment 8 by cyrusm@chromium.org, Mar 14 2017

Hi Drew - my take is, yes, if easy, we should have the blacklist apply to as many things as possible - in fact, ideally, no network traffic of any kind should be allowed to go to those URL patterns -- so question is what is LOE on this?
Labels: -Pri-2 Pri-1
Status: Untriaged (was: Unconfirmed)
I would even claim this to be a regression. I verified that this is indeed the case btw so flipping it to untriaged and upping the prio. However I doubt this fix will go in 56 or 57 as it will be extensive.

I am pretty sure when this policy was built it was preventing all kinds of requests. Could also be my weak memory though. :)
Labels: -OS-Mac

Comment 11 by kgra...@gmail.com, Jul 15 2017

I think it's intended behavior that the URLBlacklist only applies to top level URLs and frames. If you want more granular control over blocking XHR you are free to get it by having a force installed extension use chrome.webRequest
Status: Assigned (was: Untriaged)
Owner: marcuskoehler@chromium.org
Labels: Hotlist-Enterprise-Networking

Sign in to add a comment