Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace NVD-column with packages-column at output of report #1414

Merged

Conversation

MasatoYagi
Copy link
Contributor

What did you implement:

Replace NVD column with PACKAGES column at the output of vuls report and add table row lines.
+fix spelling mistake

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

❯ vuls report
[Mar  7 20:49:10]  INFO [localhost] vuls-v0.19.4-build-20220307_202611_dc9ae7a
[Mar  7 20:49:10]  INFO [localhost] Validating config...
[Mar  7 20:49:10]  INFO [localhost] cveDict.type=sqlite3, cveDict.url=, cveDict.SQLite3Path=/home/masato/go/src/github.com/future-architect/vuls/cve.sqlite3
[Mar  7 20:49:10]  INFO [localhost] ovalDict.type=sqlite3, ovalDict.url=, ovalDict.SQLite3Path=/home/masato/go/src/github.com/future-architect/vuls/oval.sqlite3
[Mar  7 20:49:10]  INFO [localhost] gost.type=sqlite3, gost.url=, gost.SQLite3Path=/home/masato/go/src/github.com/future-architect/vuls/gost.sqlite3
[Mar  7 20:49:10]  INFO [localhost] exploit.type=sqlite3, exploit.url=, exploit.SQLite3Path=/home/masato/go/src/github.com/future-architect/vuls/go-exploitdb.sqlite3
[Mar  7 20:49:10]  INFO [localhost] metasploit.type=sqlite3, metasploit.url=, metasploit.SQLite3Path=/home/masato/go/src/github.com/future-architect/vuls/go-msfdb.sqlite3
[Mar  7 20:49:10]  INFO [localhost] kevuln.type=sqlite3, kevuln.url=, kevuln.SQLite3Path=/home/masato/go/src/github.com/future-architect/vuls/go-kev.sqlite3
[Mar  7 20:49:10]  INFO [localhost] Loaded: /home/masato/go/src/github.com/future-architect/vuls/results/2022-03-07T20:47:20+09:00
[Mar  7 20:49:10]  INFO [localhost] No need to refresh
[Mar  7 20:49:10]  INFO [localhost] localhost: total 257 CVEs detected
[Mar  7 20:49:10]  INFO [localhost] localhost: 0 CVEs filtered by --confidence-over=80
localhost (ubuntu20.04)
=======================
Total: 257 (Critical:0 High:1 Medium:92 Low:117 ?:47)
0/257 Fixed, 0 poc, 0 exploits, cisa: 0, uscert: 0, jpcert: 0 alerts
1932 installed

+------------------+------+--------+-----+-----------+---------+----------------------------------------+
|      CVE-ID      | CVSS | ATTACK | POC |   ALERT   |  FIXED  |                PACKAGES                |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2019-11707   |  8.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2013-7445    |  6.9 |        |     |           | unfixed | linux-image-5.4.0-100-generic          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2015-8553    |  6.9 |        |     |           | unfixed | linux-image-5.4.0-100-generic          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2016-1585    |  6.9 |        |     |           | unfixed | apparmor                               |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2016-8660    |  6.9 |        |     |           | unfixed | linux-image-5.4.0-100-generic          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2017-7810    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2017-7826    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2017-7827    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2017-7831    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-17977   |  6.9 |        |     |           | unfixed | linux-image-5.4.0-100-generic          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5089    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5090    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5093    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5094    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5125    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5126    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5145    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5150    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2018-5151    |  6.9 |        |     |           | unfixed | libmozjs-52-0                          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2020-10134   |  6.9 |        |     |           | unfixed | bluez                                  |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2020-10756   |  6.9 |        |     |           | unfixed | slirp4netns                            |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2020-13844   |  6.9 |        |     |           | unfixed | cpp, cpp-7, g++, gcc,                  |
|                  |      |        |     |           |         | gcc-7-base, gcc-8-base, gcc-9          |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
| CVE-2020-13962   |  6.9 |        |     |           | unfixed | libqt5core5a, libqt5dbus5,             |
|                  |      |        |     |           |         | libqt5gui5, libqt5network5,            |
|                  |      |        |     |           |         | libqt5opengl5,                         |
|                  |      |        |     |           |         | libqt5printsupport5,                   |
|                  |      |        |     |           |         | libqt5sql5, libqt5sql5-sqlite,         |
|                  |      |        |     |           |         | libqt5test5,                           |
|                  |      |        |     |           |         | libqt5widgets5, libqt5xml5,            |
|                  |      |        |     |           |         | qt5-gtk-platformtheme                  |
+------------------+------+--------+-----+-----------+---------+----------------------------------------+
... snip ....

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

@kotakanbe kotakanbe merged commit 1c77bc1 into future-architect:master Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants