Repository navigation
Commit 925dfcb
committed
Match the exempted config URLs as exact literals
`*f=config.guess*` also matches `f=config.guess.backdoor`, so the exemption
still skipped verification on unrelated downloads. Second time a wildcard in
this exemption has been wider than intended — a domain glob before, a filename
prefix now — so drop wildcards entirely and match the two URLs as literals.
There is nothing left to widen: the definitions reference exactly these two
fixed strings, anything else is checked. Quoted so `?` and `;` are matched
literally rather than as glob and case-clause syntax. If the URLs ever change
shape, this list has to be updated by hand, which is the intended cost of
skipping verification on a download.
Verified the two real URLs still pass and four bypass shapes are caught:
config.guess.backdoor, config.subversion, an altered hb parameter, and the same
path on another host.1 parent 15867ed commit 925dfcb
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
140 | 139 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
0 commit comments