Activity log for bug #1877023

Date Who What changed Old value New value Message
2020-05-06 04:24:54 Seong-Joong Kim bug added bug
2020-05-11 07:43:11 Seong-Joong Kim description Hi, I have found a security issue on apport 2.20.11 and earlier. ## Vulnerability in apport apport 2.20.11 and earlier have an unhandled exception vulnerability during parsing apport-ignore.xml. An attacker can cause a denial of service (i.e., application crash) via a crafted apport-ignore.xml file. ## Description Reports can be suppressed by blacklisting in apport-ignore.xml. This is an example of apport-ignore.xml <?xml version="1.0" ?> <apport> <ignore mtime="1461374304" program="/opt/sublime_text/sublime_text"/> <ignore mtime="1453471676" program="/bin/sleep"/> <ignore mtime="1452699271" program="/usr/bin/strace"/> </apport> Unfortunately, it may cause an unhandled exception when 'mtime' attribute is specified as a string value, not a number like this. <?xml version="1.0" ?> <apport> <ignore mtime="string" program="/bin/sleep"/> </apport> It may disrupt apport service and allow an attacker to potentially enable a denial of service via local access. The flaw lies in improper exception handling of 'mtime' attribute in apport-ignore.xml (see https://git.launchpad.net/ubuntu/+source/apport/tree/apport/report.py?h=applied/ubuntu/devel#n1104). Here is /var/log/apport.log when the above exception occurs. ERROR: apport (pid 25904) Tue May 5 18:38:21 2020: Unhandled exception: Traceback (most recent call last): File "/usr/share/apport/apport", line 629, in <module> if info.check_ignored(): File "/usr/lib/python3/dist-packages/apport/report.py", line 1082, in check_ignored if float(ignore.getAttribute('mtime')) >= cur_mtime: ValueError: could not convert string to float: 'string' Sincerely, Hi, I have found a security issue on apport 2.20.11 and earlier. ## Vulnerability apport 2.20.11 and earlier have an unhandled exception vulnerability during parsing apport-ignore.xml. An attacker can cause a denial of service (i.e., application crash) via a crafted apport-ignore.xml file. ## Description Reports can be suppressed by blacklisting in apport-ignore.xml. This is an example of apport-ignore.xml <?xml version="1.0" ?> <apport>   <ignore mtime="1461374304" program="/opt/sublime_text/sublime_text"/>   <ignore mtime="1453471676" program="/bin/sleep"/>   <ignore mtime="1452699271" program="/usr/bin/strace"/> </apport> Unfortunately, it may cause an unhandled exception when 'mtime' attribute is specified as a string value, not a number like this. <?xml version="1.0" ?> <apport>   <ignore mtime="string" program="/bin/sleep"/> </apport> It may disrupt apport service and allow an attacker to potentially enable a denial of service via local access. The flaw lies in improper exception handling of 'mtime' attribute in apport-ignore.xml (see https://git.launchpad.net/ubuntu/+source/apport/tree/apport/report.py?h=applied/ubuntu/devel#n1104). ## Log Here is /var/log/apport.log when the above exception occurs. ERROR: apport (pid 25904) Tue May 5 18:38:21 2020: Unhandled exception: Traceback (most recent call last):   File "/usr/share/apport/apport", line 629, in <module>     if info.check_ignored():   File "/usr/lib/python3/dist-packages/apport/report.py", line 1082, in check_ignored     if float(ignore.getAttribute('mtime')) >= cur_mtime: ValueError: could not convert string to float: 'string' Sincerely,
2020-05-12 06:58:11 Seong-Joong Kim attachment added unhandled-XML-exception.patch https://bugs.launchpad.net/apport/+bug/1877023/+attachment/5370183/+files/unhandled-XML-exception.patch
2020-05-13 07:29:13 Seong-Joong Kim information type Private Security Public Security
2020-05-18 08:22:56 Seong-Joong Kim affects apport apport (Ubuntu)
2020-05-18 08:26:31 Ubuntu Foundations Team Bug Bot tags patch
2020-05-18 08:26:40 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2020-05-18 17:22:54 Brian Murray apport (Ubuntu): importance Undecided Medium
2020-05-18 17:22:59 Brian Murray apport (Ubuntu): status New Confirmed
2020-05-19 13:08:50 Seong-Joong Kim bug task added apport
2020-07-14 02:01:33 Seth Arnold cve linked 2020-15701
2020-08-04 16:58:15 Launchpad Janitor apport (Ubuntu): status Confirmed Fix Released
2020-08-04 16:58:15 Launchpad Janitor cve linked 2020-11936
2020-08-04 16:58:15 Launchpad Janitor cve linked 2020-15702
2020-08-05 20:56:58 Launchpad Janitor branch linked lp:~ubuntu-core-dev/ubuntu/groovy/apport/ubuntu
2022-06-27 10:16:28 Benjamin Drung apport: milestone 2.21.0
2022-06-27 10:16:32 Benjamin Drung apport: importance Undecided Critical
2022-06-27 10:16:37 Benjamin Drung apport: status New Fix Released