Closed Bug 1709749 Opened 4 years ago Closed 4 years ago

Resource response is visible in devtools even when "CORS Missing Allow Origin" is triggered

Categories

(DevTools :: Netmonitor, defect)

Firefox 90
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1671147

People

(Reporter: karlcow, Unassigned)

References

()

Details

Attachments

(1 file)

  1. Open devtools on Network Panel
  2. Load https://s3.eu-west-1.amazonaws.com/hacker-secure-cookie-2.io/sop/lab2_embedding.html
  3. choose in the network Monitor results, the line for sample.json
  4. Click on the response panel

Expected:
Not accessible.

Actual:
The content of the file is visible.

I'm not sure it's a real issue. The reporter on webcompat seems to be concerned that the response is visible in the devtools, but it doesn't mean that the initial server has access to the data.

That was reported on https://webcompat.com/issues/72813

Flags: needinfo?(hmanilla)

Thanks for reporting Karl.

We are currently working on this issue in Bug 1671147.
We are looking at showing a notification in this cases.
Please feel free to have a look and add any suggestions
on the solution.

Thanks

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(hmanilla)
Resolution: --- → DUPLICATE

First I thought this security issue might have happened because the mentioned website's developer might have used both the Same origin policy and Cross Origin Resource Sharing (as seen here:https://secure-cookie.io/fundamental/cors/). However, after seeing the comments on webcompat I could see that this is only affected in Firefox..so could be something else..

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: