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