upgrade.py crashes if a captive portal is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Amarnath Chitumalla | ||
hplip (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The "hp-upgrade --check" command downloads info from http://
This could have a security impact as it downloads information without verifying the source. A specially crafted config file or limitless (/dev/null, /dev/random) file could have an impact.
1. Use TLS and verify certificates
2. Use GPG to sign the file and verify on the client.
3. Limit the maximum amount of bytes downloaded
4. Validate the config file.
5. Retry the upgrade check at a later time (after wlan authentication)
6. Use APT to check for updates if that's possible
PythonArgs: ['/usr/
Traceback:
Traceback (most recent call last):
File "/usr/bin/
hplip_
File "/usr/share/
self.read()
File "/usr/share/
self.
File "/usr/lib/
self._read(fp, filename)
File "/usr/lib/
raise MissingSectionH
MissingSection
file: /tmp/tmpA55LLA, line: 1
'<HTML>
Changed in hplip: | |
status: | New → In Progress |
assignee: | nobody → Amarnath Chitumalla (amarnath-chitumalla) |
status: | In Progress → Fix Committed |
Changed in hplip: | |
status: | Fix Committed → Fix Released |
HPLIP version: 3.12.6-3ubuntu4
Ubuntu version: Ubuntu 12.10 (Quantal)