-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hackerone] block mixed content on .onion sites #25939
Comments
@LaurenWags looks like we have a few cases that QA can use outlined via brave/brave-core#15436 (comment) & brave/brave-core#15436 (comment). @diracdeltas would the above be sufficient enough re: QA verification? If so, we can remove the |
Removing |
Verification
Case 1:
Confirmed
|
step 3 | step 6 | result | step 8 | result |
---|---|---|---|---|
Case 2: PASSED
- visit https://brave4u7jddbv7cyviptqjc7jusxh72uik7zt6adtckl5f4nwy2v72qd.onion/index.html in a new tab
- open devtools and enter
fetch("example.com")
in the console - click on Network
Confirmed www.example.com
is blocked with 404 in the Network
ex1 | ex2 | ex3 |
---|---|---|
- Notes: there was some change for the Case 2. Here is the thread
https://bravesoftware.slack.com/archives/C8MP8ME4C/p1670962128470819
Case 3: PASSED
- visit https://mixed.badssl.com/ in a new-tab in Tor window -
PASSED
- confirmed it shows warning messages in the console about an insecure resource being requested (but was upgraded)
Mixed Content: The page at 'https://mixed.badssl.com/' was loaded over HTTPS, but requested an insecure element 'http://mixed.badssl.com/image.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
- confirmed it shows warning messages in the console about an insecure resource being requested (but was upgraded)
- visited 'http://mixed.badssl.com/image.jpg' in new-tab -
PASSED
- confirmed this request was automatically upgraded to HTTPS`
- visit https://mixed-favicon.badssl.com/ in a new-tab -
PASSED
- confirmed it shows error message in the console about favicon being blocked
Mixed Content: The page at 'https://mixed-favicon.badssl.com/' was loaded over HTTPS, but requested an insecure favicon. 'http://mixed-favicon.badssl.com/favicon.ico'. This request has been blocked; the content must be served over HTTPS.
- confirmed it shows error message in the console about favicon being blocked
- visit https://mixed-form.badssl.com/ in a new-tab -
PASSED
- confirmed console shown warning
- Mixed Content: The page at 'https://mixed-form.badssl.com/' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://http.badssl.com/resources/form-submitted.html'. This endpoint should be made available over a secure connection.
- confirmed console shown warning
- visit https://mixed-script.badssl.com/ in a new-tab -
PASSED
- confirmed shown with a grey background and has an error message in the console
- visit https://very.badssl.com/ in a new-tab -
PASSED
- confirmed the page is shown both warnings and errors in the console
Verification passed on
Brave | 1.47.132 Chromium: 108.0.5359.128 (Official Build) beta (64-bit) |
---|---|
Revision | 1cd27afdb8e5d057070c0961e04c490d2aca1aa0-refs/branch-heads/5359@{#1185} |
OS | Ubuntu 18.04 LTS |
Case 1: PASSED
- Install 1.47.x
- launch Brave
- click hamburger menu >>New Private window with Tor
- Wait until Tor connected successfully message
- visit http://xao2lxsmia2edq2n5zxg6uahx6xox2t7bfjw6b5vdzsxi7ezmqob6qid.onion/
- open devtools and enter
fetch("https://www.example.com")
in the console - click on Network
- close existing tab and open a new-tab
- repeat step 5-7with
fetch("http://www.example.com")
Confirmed https://www.example.com/
is blocked due CORS policy
Confirmed http://www.example.com
is blocked with a message blocked:mixed-content
in the Network
step 3 | step 6 | result | step 8 | result |
---|---|---|---|---|
Case 2: PASSED
- visit https://brave4u7jddbv7cyviptqjc7jusxh72uik7zt6adtckl5f4nwy2v72qd.onion/index.html in a new tab
- open devtools and enter
fetch("example.com")
in the console - click on Network
Confirmed www.example.com
is blocked with 404 in the Network
- Notes: there was some change for the Case 2. Here is the thread
https://bravesoftware.slack.com/archives/C8MP8ME4C/p1670962128470819
Case 3: PASSED
- visit https://mixed.badssl.com/ in a new-tab in Tor window -
PASSED
- confirmed it shows warning messages in the console about an insecure resource being requested (but was upgraded)
Mixed Content: The page at 'https://mixed.badssl.com/' was loaded over HTTPS, but requested an insecure element 'http://mixed.badssl.com/image.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
- confirmed it shows warning messages in the console about an insecure resource being requested (but was upgraded)
- visited 'http://mixed.badssl.com/image.jpg' in new-tab -
PASSED
- confirmed this request was automatically upgraded to HTTPS`
- visit https://mixed-favicon.badssl.com/ in a new-tab -
PASSED
- confirmed it shows error message in the console about favicon being blocked
Mixed Content: The page at 'https://mixed-favicon.badssl.com/' was loaded over HTTPS, but requested an insecure favicon. 'http://mixed-favicon.badssl.com/favicon.ico'. This request has been blocked; the content must be served over HTTPS.
- confirmed it shows error message in the console about favicon being blocked
- visit https://mixed-form.badssl.com/ in a new-tab -
PASSED
- confirmed console shown warning
- Mixed Content: The page at 'https://mixed-form.badssl.com/' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://http.badssl.com/resources/form-submitted.html'. This endpoint should be made available over a secure connection.
- confirmed console shown warning
- visit https://mixed-script.badssl.com/ in a new-tab -
PASSED
- confirmed shown with a grey background and has an error message in the console
- visit https://very.badssl.com/ in a new-tab -
PASSED
- confirmed the page is shown both warnings and errors in the console
Verification
|
Brave | 1.47.135 Chromium: 108.0.5359.128 (Official Build) beta (x86_64) |
---|---|
Revision | 1cd27afdb8e5d057070c0961e04c490d2aca1aa0-refs/branch-heads/5359@{#1185} |
OS | macOS Version 11.7.2 (Build 20G1020) |
Case 1: PASSED
- install
1.47.135
- launched Brave
- clicked
"hamburger"
menu ->New Private Window with Tor
- waited until
Tor connected successfully
message - visited
http://xao2lxsmia2edq2n5zxg6uahx6xox2t7bfjw6b5vdzsxi7ezmqob6qid.onion/
- opened
Developer Tools
and enteredfetch("https://www.example.com")
in the console - clicked on the
Network
panel - closed existing tab and open a new-tab
- repeated steps 5-7 with
fetch("http://www.example.com")
Confirmed https://www.example.com/
is blocked due to CORS policy
Confirmed http://www.example.com
is blocked with a message blocked:mixed-content
in the Network
panel
step 4 | step 6 | result | step 9 | result |
---|---|---|---|---|
Case 2: PASSED
- visited
https://brave4u7jddbv7cyviptqjc7jusxh72uik7zt6adtckl5f4nwy2v72qd.onion/index.html
in a new tab - opened
Developer Tools
and enteredfetch("example.com")
in theConsole
panel - clicked on the
Network
panel
Confirmed www.example.com is blocked with 404 in the Network
Case 3: PASSED
- loaded
https://mixed.badssl.com/
in a new Tor window -PASSED
- loaded
http://mixed.badssl.com/image.jpg
in a new Tor window -PASSED
- loaded
https://mixed-favicon.badssl.com/
in a new Tor window -PASSED
- loaded
https://mixed-form.badssl.com/
in a new Tor window -PASSED
- loaded
https://mixed-script.badssl.com/
in a new Tor window -PASSED
- loaded
https://very.badssl.com/
in a new Tor window -PASSED
fixed by brave/brave-core#15436
https://hackerone.com/bugs?subject=brave&report_id=1727949&view=open&substates%5B%5D=new&substates%5B%5D=triaged&substates%5B%5D=needs-more-info&reported_to_team=&text_query=&program_states%5B%5D=2&program_states%5B%5D=3&program_states%5B%5D=4&program_states%5B%5D=5&sort_type=latest_activity&sort_direction=descending&limit=25&page=1
credit: xiaoyinl
The text was updated successfully, but these errors were encountered: