[deleted]

Bug reports and enhancement requests
Post Reply
LouiseRBaldwin
Posts: 3
Joined: Mon Apr 07, 2014 3:14 pm

[deleted]

Post by LouiseRBaldwin »

[deleted]
Last edited by LouiseRBaldwin on Sun Jun 28, 2015 1:00 pm, edited 1 time in total.
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: InjectionChecker same-origin policy flaw

Post by Giorgio Maone »

This has been deliberated design choice, based on:
  1. The availability of effective countermeasures against MITM attacks like the one you described (HSTS, ForceHTTPS, NoScript's built-in HTTPS options...)
  2. Known false positive issues which would be caused by the stricter policy you're descibing
However I guess I could try to enforce injection checks when landing on HTTPS from a different protocol/port, maybe with an about:config preference switch off, and see how it goes...
[Edit]
Sorry, I wrote the above defense assuming you actually checked your statement, but it looks we already treat different schemes with same host name as different origins for cross-site request checks purposes, see my follow-up post below for a POC...
In facts, the false positives I mentioned are (safely) managed as ad-hoc exceptions.
[Edit 2]
The POC below failed on me because of some extra paranoid settings of mine, but it generally works. Sorry for the late night mistake.
Please check my 2nd post below, too.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: InjectionChecker same-origin policy flaw

Post by Giorgio Maone »

Actually, it seems I've already "fixed" this long time ago, and forgot about it :)
Please try this.
Am I missing something?

[Edit]
Yes, I was missing my extra-paranoid settings.
In the general case (without HSTS etc.), my own "PoC" above succeeds. Trying the work-around hinted above, stay tuned :)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
LouiseRBaldwin
Posts: 3
Joined: Mon Apr 07, 2014 3:14 pm

[deleted]

Post by LouiseRBaldwin »

[deleted]
Last edited by LouiseRBaldwin on Sun Jun 28, 2015 1:00 pm, edited 2 times in total.
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9530
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: InjectionChecker same-origin policy flaw

Post by Giorgio Maone »

Please check latest development build 2.6.8.20rc1, thank you.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Post Reply