1 |
On Fri, 25 Aug 2017 15:51:25 +0200 Michał Górny wrote: |
2 |
> W dniu śro, 23.08.2017 o godzinie 11∶46 +0300, użytkownik Andrew |
3 |
> Savchenko napisał: |
4 |
> > On Sat, 19 Aug 2017 10:25:02 +0200 Michał Górny wrote: |
5 |
> > > Explicitly warn about any URI that uses an unsecure protocol (git, http) |
6 |
> > > even if it's a fallback URI. This is necessary because an attacker may |
7 |
> > > block HTTPS connections, effectively forcing the fallback to |
8 |
> > > the unsecure protocol. |
9 |
> > |
10 |
> > [...] |
11 |
> > > + local r |
12 |
> > > + for r in "${repos[@]}"; do |
13 |
> > > + if [[ ${r} == git:* || ${r} == http:* ]]; then |
14 |
> > > + ewarn "git-r3: ${r%%:*} protocol in unsafe and may be subject to MITM attacks" |
15 |
> > > + ewarn "(even if used only as fallback). Please use https instead." |
16 |
> > > + ewarn "[URI: ${r}]" |
17 |
> > > + fi |
18 |
> > > + done |
19 |
> > > + |
20 |
> > |
21 |
> > Sigh... https also makes MITM attacks possible, especially if SSL |
22 |
> > or TLS < 1.2 is used or are allowed and protocol version downgrade |
23 |
> > attack may be performed. |
24 |
> > |
25 |
> > Such messages create a false impression of a safety of https. |
26 |
> > Safety more or less can be gained by verifying GPG signatures and |
27 |
> > fingerprints of the upstream commits, if upstream supports this. Of |
28 |
> > course using https is better than using http or git, but better |
29 |
> > only by a bit. |
30 |
> > |
31 |
> |
32 |
> Yes, we can do a whole long debate about problems with HTTPS. Yes, we |
33 |
> can do an even longer debate about all those fancy solutions that solve |
34 |
> all the problems in the world, except they're completely not applicable |
35 |
> in practice. People will become a lot wiser and/or depressed. |
36 |
> |
37 |
> However, I'd rather do what I can practically do to make a real |
38 |
> difference. And I believe that making things a little safer is better |
39 |
> than claiming that nothing is safe, so let's just abandon all hope |
40 |
> and continue using completely unsecured protocols. |
41 |
|
42 |
I agree that better to have some improvement rather than nothing. |
43 |
|
44 |
> Nevertheless, I've changed the wording a bit to avoid giving this 'false |
45 |
> impression' that https is entirely secure. |
46 |
|
47 |
Thanks, that was my main intent: to have correct docs. |
48 |
|
49 |
|
50 |
Best regards, |
51 |
Andrew Savchenko |