uploadserver 6.0.4__tar.gz → 6.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {uploadserver-6.0.4/uploadserver.egg-info → uploadserver-6.0.6}/PKG-INFO +4 -1
- {uploadserver-6.0.4 → uploadserver-6.0.6}/README.md +3 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/setup.py +1 -1
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver/__init__.py +13 -4
- {uploadserver-6.0.4 → uploadserver-6.0.6/uploadserver.egg-info}/PKG-INFO +4 -1
- {uploadserver-6.0.4 → uploadserver-6.0.6}/LICENSE +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/setup.cfg +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver/__main__.py +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver/cgi.py +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver.egg-info/SOURCES.txt +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver.egg-info/dependency_links.txt +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver.egg-info/entry_points.txt +0 -0
- {uploadserver-6.0.4 → uploadserver-6.0.6}/uploadserver.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uploadserver
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.6
|
|
4
4
|
Summary: Python's http.server extended to include a file upload page
|
|
5
5
|
Home-page: https://github.com/Densaugeo/uploadserver
|
|
6
6
|
Author: Densaugeo
|
|
@@ -206,6 +206,7 @@ options:
|
|
|
206
206
|
## Security Issues
|
|
207
207
|
|
|
208
208
|
- Patched in `6.0.3`: Timing side channel. Introduced in `1.0.0`. Unpatched versions using the `--basic-auth`, `--basic-auth-upload`, or `--token` options are vulnerable to revealing password information through response timing.
|
|
209
|
+
- Patched in `6.0.6`: Auth bypass. Introduced in `4.1.0`, Unpatched versions using the `--basic-auth` option are vulnerable to revealing existence and size of particular files through unauthenticated HEAD requests. When running with the `--cgi` option enabled as well, also vulnerable to triggering CGI scripts without authentication.
|
|
209
210
|
- Patched in `6.0.2`: DoS vulnerability. Introduced in `4.1.0`. Unpatched versions using the `--basic-auth` or `--basic-auth-upload` options generate stack traces in response to certain requests, which could be used to pollute logs or exhaust storage.
|
|
210
211
|
|
|
211
212
|
## Acknowledgements
|
|
@@ -224,4 +225,6 @@ Thanks to abbbe for adding HTTP basic auth (has now replaced the token option).
|
|
|
224
225
|
|
|
225
226
|
Thanks to 0xLordMahesh for reporting the timing side channel and DoS vulnerabilities patched in 6.0.2 and 6.0.3.
|
|
226
227
|
|
|
228
|
+
Thanks to clear-human for reporting the auth bypass patched in 6.0.6.
|
|
229
|
+
|
|
227
230
|
Thanks to SimarMugattarov, theo543, poshul, and OnkarRuikar for minor updates.
|
|
@@ -183,6 +183,7 @@ options:
|
|
|
183
183
|
## Security Issues
|
|
184
184
|
|
|
185
185
|
- Patched in `6.0.3`: Timing side channel. Introduced in `1.0.0`. Unpatched versions using the `--basic-auth`, `--basic-auth-upload`, or `--token` options are vulnerable to revealing password information through response timing.
|
|
186
|
+
- Patched in `6.0.6`: Auth bypass. Introduced in `4.1.0`, Unpatched versions using the `--basic-auth` option are vulnerable to revealing existence and size of particular files through unauthenticated HEAD requests. When running with the `--cgi` option enabled as well, also vulnerable to triggering CGI scripts without authentication.
|
|
186
187
|
- Patched in `6.0.2`: DoS vulnerability. Introduced in `4.1.0`. Unpatched versions using the `--basic-auth` or `--basic-auth-upload` options generate stack traces in response to certain requests, which could be used to pollute logs or exhaust storage.
|
|
187
188
|
|
|
188
189
|
## Acknowledgements
|
|
@@ -201,4 +202,6 @@ Thanks to abbbe for adding HTTP basic auth (has now replaced the token option).
|
|
|
201
202
|
|
|
202
203
|
Thanks to 0xLordMahesh for reporting the timing side channel and DoS vulnerabilities patched in 6.0.2 and 6.0.3.
|
|
203
204
|
|
|
205
|
+
Thanks to clear-human for reporting the auth bypass patched in 6.0.6.
|
|
206
|
+
|
|
204
207
|
Thanks to SimarMugattarov, theo543, poshul, and OnkarRuikar for minor updates.
|
|
@@ -29,18 +29,17 @@ def get_upload_page(theme: str) -> bytes:
|
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
|
31
31
|
<h1>File Upload</h1>
|
|
32
|
-
<hr />
|
|
33
|
-
<a href="/">File Download</a> (back to download page)
|
|
34
|
-
<hr />
|
|
35
32
|
<form action="upload" method="POST" enctype="multipart/form-data">
|
|
36
33
|
<input name="files" type="file" multiple />
|
|
37
34
|
<br />
|
|
38
35
|
<br />
|
|
39
|
-
<input type="submit" />
|
|
36
|
+
<input type="submit" value="Upload" />
|
|
40
37
|
</form>
|
|
41
38
|
<p id="task"></p>
|
|
42
39
|
<p id="status"></p>
|
|
43
40
|
<hr />
|
|
41
|
+
<a href="/">File Download</a> (back to download page)
|
|
42
|
+
<hr />
|
|
44
43
|
</body>
|
|
45
44
|
<script>
|
|
46
45
|
document.getElementsByTagName('form')[0].addEventListener('submit', async e => {
|
|
@@ -285,6 +284,11 @@ class SimpleHTTPRequestHandler(ListDirectoryInterception,
|
|
|
285
284
|
else:
|
|
286
285
|
super().do_GET()
|
|
287
286
|
|
|
287
|
+
def do_HEAD(self):
|
|
288
|
+
if not check_http_authentication(self): return
|
|
289
|
+
|
|
290
|
+
super().do_HEAD()
|
|
291
|
+
|
|
288
292
|
def do_POST(self):
|
|
289
293
|
if not check_http_authentication(self): return
|
|
290
294
|
|
|
@@ -313,6 +317,11 @@ class CGIHTTPRequestHandler(ListDirectoryInterception,
|
|
|
313
317
|
else:
|
|
314
318
|
super().do_GET()
|
|
315
319
|
|
|
320
|
+
def do_HEAD(self):
|
|
321
|
+
if not check_http_authentication(self): return
|
|
322
|
+
|
|
323
|
+
super().do_HEAD()
|
|
324
|
+
|
|
316
325
|
def do_POST(self):
|
|
317
326
|
if not check_http_authentication(self): return
|
|
318
327
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uploadserver
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.6
|
|
4
4
|
Summary: Python's http.server extended to include a file upload page
|
|
5
5
|
Home-page: https://github.com/Densaugeo/uploadserver
|
|
6
6
|
Author: Densaugeo
|
|
@@ -206,6 +206,7 @@ options:
|
|
|
206
206
|
## Security Issues
|
|
207
207
|
|
|
208
208
|
- Patched in `6.0.3`: Timing side channel. Introduced in `1.0.0`. Unpatched versions using the `--basic-auth`, `--basic-auth-upload`, or `--token` options are vulnerable to revealing password information through response timing.
|
|
209
|
+
- Patched in `6.0.6`: Auth bypass. Introduced in `4.1.0`, Unpatched versions using the `--basic-auth` option are vulnerable to revealing existence and size of particular files through unauthenticated HEAD requests. When running with the `--cgi` option enabled as well, also vulnerable to triggering CGI scripts without authentication.
|
|
209
210
|
- Patched in `6.0.2`: DoS vulnerability. Introduced in `4.1.0`. Unpatched versions using the `--basic-auth` or `--basic-auth-upload` options generate stack traces in response to certain requests, which could be used to pollute logs or exhaust storage.
|
|
210
211
|
|
|
211
212
|
## Acknowledgements
|
|
@@ -224,4 +225,6 @@ Thanks to abbbe for adding HTTP basic auth (has now replaced the token option).
|
|
|
224
225
|
|
|
225
226
|
Thanks to 0xLordMahesh for reporting the timing side channel and DoS vulnerabilities patched in 6.0.2 and 6.0.3.
|
|
226
227
|
|
|
228
|
+
Thanks to clear-human for reporting the auth bypass patched in 6.0.6.
|
|
229
|
+
|
|
227
230
|
Thanks to SimarMugattarov, theo543, poshul, and OnkarRuikar for minor updates.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|