On Tue, Jan 16, 2018 at 5:36 AM, Stefan HÃ¥kansson LK <
stefan.lk.hakansson@ericsson.com> wrote:
> On 15/01/18 23:19, Harald Alvestrand wrote:
> > I think there's a pretty obvious intersection here: If CSP connect-src:
> > is set, only access to addresses that are already known to be addresses
> > of permitted hosts are permitted.
> >
> > That allows a single use case that I can see: Centralized conferencing
> > servers, with all servers including STUN servers named by DNS names that
> > can be looked up in advance.
>
> Would not TURN servers (named by DNS names that can be looked up in
> advance) be allowed as well?
>
> >
> > Pretty close to "disable WebRTC".
>
> If TURN is OK it would be "allow WebRTC via relay only".
>
TURN server simply provides relay but does not validate the ultimate
traffic destination. I think rogue JavaScript still would be able to
compromise a valid TURN server to establish a side communication channel to
an undefined party. In order to limit the parties with which you are
allowed to communicate, web page needs to limit TURN server, STUN servers,
and ICE candidates at the same time.
Regards,
_____________
Roman Shpount