search-vulns 0.7.4__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.
Files changed (106) hide show
  1. search_vulns-0.7.4/.github/workflows/run_tests.yml +65 -0
  2. search_vulns-0.7.4/.github/workflows/update_release_assets.yml +75 -0
  3. search_vulns-0.7.4/.gitignore +20 -0
  4. search_vulns-0.7.4/.gitmodules +0 -0
  5. search_vulns-0.7.4/CHANGELOG.md +425 -0
  6. search_vulns-0.7.4/Dockerfile +15 -0
  7. search_vulns-0.7.4/LICENSE +21 -0
  8. search_vulns-0.7.4/PKG-INFO +253 -0
  9. search_vulns-0.7.4/README.md +199 -0
  10. search_vulns-0.7.4/install.sh +51 -0
  11. search_vulns-0.7.4/pyproject.toml +98 -0
  12. search_vulns-0.7.4/src/search_vulns/CHANGELOG.md +1 -0
  13. search_vulns-0.7.4/src/search_vulns/README.md +1 -0
  14. search_vulns-0.7.4/src/search_vulns/__init__.py +0 -0
  15. search_vulns-0.7.4/src/search_vulns/config.json +38 -0
  16. search_vulns-0.7.4/src/search_vulns/config_mariadb.json +42 -0
  17. search_vulns-0.7.4/src/search_vulns/cpe_version.py +183 -0
  18. search_vulns-0.7.4/src/search_vulns/install.sh +81 -0
  19. search_vulns-0.7.4/src/search_vulns/installer.py +25 -0
  20. search_vulns-0.7.4/src/search_vulns/modules/__init__.py +0 -0
  21. search_vulns-0.7.4/src/search_vulns/modules/cpe_search/__init__.py +0 -0
  22. search_vulns-0.7.4/src/search_vulns/modules/cpe_search/build.py +96 -0
  23. search_vulns-0.7.4/src/search_vulns/modules/cpe_search/resources/debian_equiv_cpes.json +1 -0
  24. search_vulns-0.7.4/src/search_vulns/modules/cpe_search/resources/man_equiv_cpes.json +83 -0
  25. search_vulns-0.7.4/src/search_vulns/modules/cpe_search/search_vulns_cpe_search.py +242 -0
  26. search_vulns-0.7.4/src/search_vulns/modules/end_of_life_date/__init__.py +0 -0
  27. search_vulns-0.7.4/src/search_vulns/modules/end_of_life_date/build.py +197 -0
  28. search_vulns-0.7.4/src/search_vulns/modules/end_of_life_date/eold_hardcoded_matches.json +146 -0
  29. search_vulns-0.7.4/src/search_vulns/modules/end_of_life_date/search_vulns_eold.py +90 -0
  30. search_vulns-0.7.4/src/search_vulns/modules/epss/__init__.py +0 -0
  31. search_vulns-0.7.4/src/search_vulns/modules/epss/search_vulns_epss.py +74 -0
  32. search_vulns-0.7.4/src/search_vulns/modules/exploit_db/__init__.py +0 -0
  33. search_vulns-0.7.4/src/search_vulns/modules/exploit_db/build.py +73 -0
  34. search_vulns-0.7.4/src/search_vulns/modules/exploit_db/search_vulns_edb.py +26 -0
  35. search_vulns-0.7.4/src/search_vulns/modules/ghsa/__init__.py +0 -0
  36. search_vulns-0.7.4/src/search_vulns/modules/ghsa/build.py +488 -0
  37. search_vulns-0.7.4/src/search_vulns/modules/ghsa/ghsa_hardcoded_matches.json +13 -0
  38. search_vulns-0.7.4/src/search_vulns/modules/ghsa/search_vulns_ghsa.py +122 -0
  39. search_vulns-0.7.4/src/search_vulns/modules/linux_distro_backpatches/__init__.py +0 -0
  40. search_vulns-0.7.4/src/search_vulns/modules/linux_distro_backpatches/debian/__init__.py +0 -0
  41. search_vulns-0.7.4/src/search_vulns/modules/linux_distro_backpatches/debian/build.py +293 -0
  42. search_vulns-0.7.4/src/search_vulns/modules/linux_distro_backpatches/debian/debian_hardcoded_matches.json +3 -0
  43. search_vulns-0.7.4/src/search_vulns/modules/linux_distro_backpatches/debian/search_vulns_debian.py +367 -0
  44. search_vulns-0.7.4/src/search_vulns/modules/linux_distro_backpatches/utils.py +14 -0
  45. search_vulns-0.7.4/src/search_vulns/modules/msf_exploits/__init__.py +0 -0
  46. search_vulns-0.7.4/src/search_vulns/modules/msf_exploits/search_vulns_msf_exploits.py +163 -0
  47. search_vulns-0.7.4/src/search_vulns/modules/nvd/__init__.py +0 -0
  48. search_vulns-0.7.4/src/search_vulns/modules/nvd/build.py +260 -0
  49. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_db_source/CMakeLists.txt +29 -0
  50. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_db_source/create_db.cpp +413 -0
  51. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_db_source/database_wrapper.cpp +99 -0
  52. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_db_source/database_wrapper.h +54 -0
  53. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_db_source/prepared_statement.cpp +51 -0
  54. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_db_source/prepared_statement.h +46 -0
  55. search_vulns-0.7.4/src/search_vulns/modules/nvd/create_sql_statements.json +26 -0
  56. search_vulns-0.7.4/src/search_vulns/modules/nvd/install.sh +76 -0
  57. search_vulns-0.7.4/src/search_vulns/modules/nvd/search_vulns_nvd.py +155 -0
  58. search_vulns-0.7.4/src/search_vulns/modules/poc_in_github/__init__.py +0 -0
  59. search_vulns-0.7.4/src/search_vulns/modules/poc_in_github/build.py +75 -0
  60. search_vulns-0.7.4/src/search_vulns/modules/poc_in_github/search_vulns_poc_in_github.py +24 -0
  61. search_vulns-0.7.4/src/search_vulns/modules/template/__init__.py +0 -0
  62. search_vulns-0.7.4/src/search_vulns/modules/template/search_vulns_template.py +187 -0
  63. search_vulns-0.7.4/src/search_vulns/modules/utils.py +346 -0
  64. search_vulns-0.7.4/src/search_vulns/modules/vulncheck/__init__.py +0 -0
  65. search_vulns-0.7.4/src/search_vulns/modules/vulncheck/build.py +197 -0
  66. search_vulns-0.7.4/src/search_vulns/modules/vulncheck/search_vulns_nvdpp.py +22 -0
  67. search_vulns-0.7.4/src/search_vulns/resources/license_infos.md +13 -0
  68. search_vulns-0.7.4/src/search_vulns/resources/sqlite_to_mariadb.sh +78 -0
  69. search_vulns-0.7.4/src/search_vulns/search_vulns.py +798 -0
  70. search_vulns-0.7.4/src/search_vulns/updater.py +472 -0
  71. search_vulns-0.7.4/src/search_vulns/vulnerability.py +363 -0
  72. search_vulns-0.7.4/src/search_vulns/web_server.py +566 -0
  73. search_vulns-0.7.4/src/search_vulns/web_server_files/README.md +8 -0
  74. search_vulns-0.7.4/src/search_vulns/web_server_files/nginx.conf.sample +61 -0
  75. search_vulns-0.7.4/src/search_vulns/web_server_files/package-lock.json +1431 -0
  76. search_vulns-0.7.4/src/search_vulns/web_server_files/package.json +6 -0
  77. search_vulns-0.7.4/src/search_vulns/web_server_files/static/css/daisyui.css +3349 -0
  78. search_vulns-0.7.4/src/search_vulns/web_server_files/static/css/flowbite-custom.css +164 -0
  79. search_vulns-0.7.4/src/search_vulns/web_server_files/static/css/fontawesome-6.5.1.min.css +9 -0
  80. search_vulns-0.7.4/src/search_vulns/web_server_files/static/css/search_vulns.css +198 -0
  81. search_vulns-0.7.4/src/search_vulns/web_server_files/static/favicon.png +0 -0
  82. search_vulns-0.7.4/src/search_vulns/web_server_files/static/favicon.svg +1 -0
  83. search_vulns-0.7.4/src/search_vulns/web_server_files/static/js/flowbite.min.js +2 -0
  84. search_vulns-0.7.4/src/search_vulns/web_server_files/static/js/fontawesome-6.5.1.min.js +6 -0
  85. search_vulns-0.7.4/src/search_vulns/web_server_files/static/js/jquery-3.7.1.min.js +2 -0
  86. search_vulns-0.7.4/src/search_vulns/web_server_files/static/js/search_vulns.js +1321 -0
  87. search_vulns-0.7.4/src/search_vulns/web_server_files/static/js/search_vulns_api.js +166 -0
  88. search_vulns-0.7.4/src/search_vulns/web_server_files/static/js/search_vulns_theme.js +71 -0
  89. search_vulns-0.7.4/src/search_vulns/web_server_files/static/search_vulns_openapi.yaml +430 -0
  90. search_vulns-0.7.4/src/search_vulns/web_server_files/tailwind.config.js +29 -0
  91. search_vulns-0.7.4/src/search_vulns/web_server_files/tailwind_input.css +3 -0
  92. search_vulns-0.7.4/src/search_vulns/web_server_files/templates/about.html +16 -0
  93. search_vulns-0.7.4/src/search_vulns/web_server_files/templates/api-setup.html +91 -0
  94. search_vulns-0.7.4/src/search_vulns/web_server_files/templates/base.html +117 -0
  95. search_vulns-0.7.4/src/search_vulns/web_server_files/templates/index.html +189 -0
  96. search_vulns-0.7.4/src/search_vulns/web_server_files/templates/news.html +10 -0
  97. search_vulns-0.7.4/src/search_vulns/wsgi.py +6 -0
  98. search_vulns-0.7.4/tests/run_all_tests.sh +57 -0
  99. search_vulns-0.7.4/tests/test_cve_attr_completeness.py +1458 -0
  100. search_vulns-0.7.4/tests/test_cve_completeness.py +631 -0
  101. search_vulns-0.7.4/tests/test_debian_backpatches.py +129 -0
  102. search_vulns-0.7.4/tests/test_eol_date.py +78 -0
  103. search_vulns-0.7.4/tests/test_exploit_completeness.py +273 -0
  104. search_vulns-0.7.4/tests/test_ghsa_completeness.py +948 -0
  105. search_vulns-0.7.4/tests/test_version_comparison.py +43 -0
  106. search_vulns-0.7.4/tests/test_vuln_id_search.py +105 -0
@@ -0,0 +1,65 @@
1
+ name: 'Run Test Cases'
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+
7
+ jobs:
8
+ run-tests:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout search_vulns code
12
+ uses: actions/checkout@v4
13
+
14
+ - name: Check if code for building resources was changed
15
+ uses: dorny/paths-filter@v3
16
+ id: changes
17
+ with:
18
+ filters: |
19
+ build_code_changed:
20
+ - 'src/search_vulns/updater.py'
21
+
22
+ - name: Set up Python and Pip
23
+ uses: actions/setup-python@v5
24
+ with:
25
+ cache: 'pip'
26
+ python-version: '3.10'
27
+
28
+ - name: Upgrade Pip
29
+ run: python3 -m pip install --upgrade pip
30
+
31
+ - name: Install tool and build resources from source
32
+ if: steps.changes.outputs.build_code_changed == 'true'
33
+ env:
34
+ NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
35
+ VULNCHECK_API_KEY: ${{ secrets.VULNCHECK_API_KEY }}
36
+ run: |
37
+ pip3 install .
38
+ search_vulns --full-install
39
+ search_vulns --full-update
40
+ - name: Install tool and pull resources from release
41
+ if: steps.changes.outputs.build_code_changed == 'false'
42
+ run: |
43
+ pip3 install .
44
+ search_vulns -u
45
+
46
+ - name: Test CVE Completeness
47
+ run: python3 ./tests/test_cve_completeness.py
48
+
49
+ - name: Test CVE Attribute Completeness
50
+ run: python3 ./tests/test_cve_attr_completeness.py
51
+
52
+ - name: Test Exploit Completeness
53
+ run: python3 ./tests/test_exploit_completeness.py
54
+
55
+ - name: Test Version Comparison Correctness
56
+ run: python3 ./tests/test_version_comparison.py
57
+
58
+ - name: Test endoflife.date Correctness
59
+ run: python3 ./tests/test_eol_date.py
60
+
61
+ - name: Test GHSA Correctness
62
+ run: python3 ./tests/test_ghsa_completeness.py
63
+
64
+ - name: Test Vuln ID Search Correctness
65
+ run: python3 ./tests/test_vuln_id_search.py
@@ -0,0 +1,75 @@
1
+ name: Update release assets
2
+ on:
3
+ schedule:
4
+ - cron: "15 4 * * *"
5
+ workflow_dispatch:
6
+ jobs:
7
+ build-artifacts:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout search_vulns code
11
+ uses: actions/checkout@v4
12
+ - name: Set up Python and Pip
13
+ uses: actions/setup-python@v5
14
+ with:
15
+ cache: 'pip'
16
+ python-version: '3.10'
17
+ - name: Upgrade Pip
18
+ run: python3 -m pip install --upgrade pip
19
+ - name: Install tool
20
+ run: |
21
+ pip3 install -e .
22
+ search_vulns --full-install
23
+ - name: Build product and vulnerability databases
24
+ id: build
25
+ env:
26
+ NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
27
+ VULNCHECK_API_KEY: ${{ secrets.VULNCHECK_API_KEY }}
28
+ run: |
29
+ ARTIFACTS_JSON=$(search_vulns --full-update -a | tail -n 1)
30
+ echo "artifacts=$ARTIFACTS_JSON" >> "$GITHUB_OUTPUT"
31
+ - name: Test everything is working
32
+ run: python3 search_vulns -q 'jquery 2.1.3' | grep 'CVE-2020-11022'
33
+ # Do not perform actual tests here, since they become outdated rather quickly
34
+ # - name: Test CVE Completeness
35
+ # run: python3 ./tests/test_cve_completeness.py
36
+ # - name: Test CVE Attribute Completeness
37
+ # run: python3 ./tests/test_cve_attr_completeness.py
38
+ # - name: Test Exploit Completeness
39
+ # run: python3 ./tests/test_exploit_completeness.py
40
+ # - name: Test Version Comparison Correctness
41
+ # run: python3 ./tests/test_version_comparison.py
42
+ # - name: Test endoflife.date Correctness
43
+ # run: python3 ./tests/test_eol_date.py
44
+ # - name: Test GHSA Correctness
45
+ # run: python3 ./tests/test_ghsa_completeness.py
46
+ # - name: Test Vuln ID Search Correctness
47
+ # run: python3 ./tests/test_vuln_id_search.py
48
+ - name: Collect dynamic artifact files
49
+ run: |
50
+ mkdir -p release-artifacts
51
+ files=$(echo '${{ steps.build.outputs.artifacts }}' | jq -r '.[]')
52
+ for f in $files; do
53
+ if [ -f "$f" ]; then
54
+ ln -s "$f" release-artifacts/
55
+ else
56
+ echo "Warning: file '$f' does not exist"
57
+ fi
58
+ done
59
+ - name: Get latest release tag
60
+ run: |
61
+ LATEST_TAG=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/ra1nb0rn/search_vulns/releases/latest | jq -r '.tag_name')
62
+ if [[ -z $LATEST_TAG || $LATEST_TAG == "null" ]]; then
63
+ echo "error: could not get latest release tag"
64
+ exit 1
65
+ fi
66
+ echo "LATEST_RELEASE_TAG=$LATEST_TAG" >> $GITHUB_ENV
67
+ - name: Update resource files of latest release
68
+ uses: softprops/action-gh-release@v2
69
+ with:
70
+ token: ${{ secrets.GITHUB_TOKEN }}
71
+ tag_name: ${{ env.LATEST_RELEASE_TAG }}
72
+ files: |
73
+ src/search_vulns/resources/productdb.db3
74
+ src/search_vulns/resources/vulndb.db3
75
+ release-artifacts/**
@@ -0,0 +1,20 @@
1
+ .vscode
2
+ .DS_Store
3
+ .ruff_cache/
4
+ __pycache__
5
+ create_db
6
+ src/search_vulns/modules/nvd/create_db_source/json/
7
+ src/search_vulns/modules/nvd/create_db_source/build/
8
+ src/search_vulns/modules/nvd/create_db_source/mariadb-connector-cpp/
9
+ src/search_vulns/modules/nvd/create_db_source/SQLiteCpp
10
+ vulndb.db3
11
+ vulndb.db3.update
12
+ cveid_to_edbid.json
13
+ node_modules
14
+ search_vulns_api.db3
15
+ cpe-search-dictionary.db3
16
+ productdb.db3
17
+ productdb.db3.update
18
+ deprecated-cpes.json
19
+ update_logs
20
+ src/search_vulns/.is_installed
File without changes
@@ -0,0 +1,425 @@
1
+ # Changelog
2
+ This file keeps track of all notable changes between the different versions of search_vulns.
3
+
4
+ ## v0.7.4 - 2025-11-11
5
+ ### Added
6
+ - Added equivalent CPE for Apache HTTP webserver.
7
+
8
+ ### Changed
9
+ - Updated cpe_search submodule to improve matching.
10
+
11
+ ### Fixed
12
+ - Fix issue when splitting CPEs that contain an escaped colon.
13
+ - Set version of Python MariaDB package to 1.1.12 to fix bug in newer version.
14
+ - Updated test cases.
15
+
16
+
17
+ ## v0.7.3 - 2025-09-17
18
+ ### Added
19
+ - Added new module to explicitly include information about Metasploit exploits.
20
+
21
+ ### Changed
22
+ - Only apply textual matching for simple version expressions.
23
+ - Do not error during update process when a module returns no status.
24
+ - Reference BlackHat demo recording in README, instead of older, smaller one.
25
+
26
+ ### Fixed
27
+ - Added back progressbar for downloading product DB during update.
28
+ - Fixed sorting by EPSS and exploits in web view.
29
+ - Run build of deprecated CPE dictionary on non-live file.
30
+ - Updated test cases.
31
+ - Fix bug with debian backpatch module and general queries.
32
+ - Update match_reason when merging vulnerabilities.
33
+
34
+
35
+ ## v0.7.2 - 2025-07-29
36
+ ### Fixed
37
+ - Updated test cases.
38
+ - Fix bug when supplying non-subpatch version string in Debian query.
39
+ - Fix bug when supplying short CPE strings.
40
+
41
+
42
+ ## v0.7.1 - 2025-07-18
43
+ ### Fixed
44
+ - Fixed GitHub workflow files.
45
+
46
+
47
+ ## v0.7.0 - 2025-07-17
48
+ ### Added
49
+ - search_vulns is now modular.
50
+ - Concept of considering vulnerabilities fixed, e.g. by backpatches.
51
+ - Included Debian Security Tracker data for backpatch information.
52
+ - Added EPSS score to vulnerability information.
53
+ - Extended "--use-created-product-ids" from CLI to web app API.
54
+ - Added proper openapi.yaml API documentation to web app.
55
+
56
+ ### Changed
57
+ - Major rework of search_vulns' internal structure. **New install is recommended.**
58
+ - Deprecated CPEs are sometimes only considered for specific subversions and not the entire product.
59
+
60
+ ### Fixed
61
+ - Updated test cases.
62
+ - Skip Python subpackages in GHSA data because they cannot be processed properly, yet.
63
+ - Ignore alpha and beta information in GHSA data because of inconsistencies.
64
+
65
+
66
+ ## v0.6.6 - 2025-05-08
67
+ ### Added
68
+ - Added a few more hardcoded product <-> CPE matches.
69
+
70
+ ### Fixed
71
+ - Close DB connections when checking API keys.
72
+ - Properly check validity of API keys.
73
+ - Increased backoff period and retry count for VulnCheck API.
74
+ - Fix adding new CPEs from GHSA integration to DB.
75
+ - Updated test cases.
76
+
77
+
78
+ ## v0.6.5 - 2025-01-30
79
+ ### Changed
80
+ - Do not run tests when updating resources in latest GitHub release.
81
+
82
+ ### Fixed
83
+ - Fixed small bugs in cpe_search submodule.
84
+ - Updated test cases.
85
+ - Updated license years.
86
+
87
+
88
+ ## v0.6.4 - 2024-12-20
89
+ ### Added
90
+ - Added equivalent CPE for inet clear reports.
91
+ - Use GHSA DB specific information for last affected version.
92
+
93
+ ### Changed
94
+ - Slightly modified behavior of browsing CPE dropdown in web app.
95
+
96
+ ### Fixed
97
+ - Retrieval of GHSA vulnerabilities without a patched version.
98
+ - Updated test cases.
99
+
100
+
101
+ ## v0.6.3 - 2024-11-12
102
+ ### Added
103
+ - Added ability to search via vulnerability IDs (CVE and GHSA) (thanks @pommfresser).
104
+ - Added badge with current version to web server.
105
+
106
+ ### Fixed
107
+ - Fixed bug to add exploits to GHSA-only vulns.
108
+ - Updated test cases.
109
+ - Updated node packages.
110
+
111
+
112
+ ## v0.6.2 - 2024-10-24
113
+ ### Fixed
114
+ - Updated test cases.
115
+
116
+
117
+ ## v0.6.1 - 2024-10-18
118
+ ### Added
119
+ - Added equivalent CPEs.
120
+
121
+ ### Changed
122
+ - Limited when NVD vuln description search is performed.
123
+ - Removed bad CPE equivalence from Debian list.
124
+
125
+ ### Fixed
126
+ - Updated test cases.
127
+
128
+
129
+ ## v0.6.0 - 2024-09-04
130
+ ### Added
131
+ - Integrated [GitHub Security Advisory Database](https://github.com/github/advisory-database) as data source.
132
+ - Integrated [VulnCheck's NVD++](https://vulncheck.com/nvd2) with enhanced NVD information as data source.
133
+ - Added very basic retrieval of NVD vulnerabilities via their vuln description text.
134
+ - Add equivalent CPEs for Keycloak, NATS server and Nginx.
135
+ - Equivalent CPEs are now also searched for via indirect connections (i.e. transitively).
136
+
137
+ ### Changed
138
+ - Increased size of CVSS vectors in DB to accomodate longer CVSS 4.0 vectors.
139
+ - The file structure was changed, such that the build code resides in its own directory.
140
+ - Rejected CVEs without content are no longer stored in the local vuln DB.
141
+ - Reworked C++ build code for NVD CVSS score to also accept secondary CVSS scores and CVSS 4.0.
142
+ - Browsing the CPE dropdown in the web app now wraps around instead of staying fixed to beginning or end.
143
+
144
+ ### Fixed
145
+ - Updated test cases.
146
+ - Fixed processing of EoLD data and made it more resistant to formatting errors.
147
+
148
+
149
+ ## v0.5.7 - 2024-07-25
150
+ ### Added
151
+ - Added equivalent CPE for Ghostscript.
152
+ - Added equivalent CPE for OwnCloud.
153
+ - Added links to public web instance and blog posts to GitHub README.
154
+
155
+ ### Changed
156
+ - search_vulns logo in web app now uses snake case.
157
+
158
+ ### Fixed
159
+ - Updated test cases.
160
+ - Fixed comparison of zero-extended versions, e.g. 21.0 !< 21.0.0
161
+
162
+
163
+ ## v0.5.6 - 2024-07-08
164
+ ### Fixed
165
+ - Update test case.
166
+ - Fix install script to terminate with error code if DB build fails.
167
+
168
+
169
+ ## v0.5.5 - 2024-06-28
170
+ ### Changed
171
+ - Exclude endoflife.date tests from workflow that updates the release assets.
172
+
173
+ ### Fixed
174
+ - Update WordPress test case for endoflife.date.
175
+
176
+
177
+ ## v0.5.4 - 2024-06-24
178
+ ### Fixed
179
+ - Updated several test cases.
180
+
181
+
182
+ ## v0.5.3 - 2024-05-24
183
+ ### Changed
184
+ - CPE suggestions dropdown is now limited in height and is scrollable.
185
+ - Arrow keys can now be held down to browse list of CPE suggestions faster.
186
+
187
+ ### Fixed
188
+ - Updated exploit test case.
189
+
190
+
191
+ ## v0.5.2 - 2024-05-13
192
+ ### Added
193
+ - Added equivalent CPE for GoAnywhere MFT.
194
+ - Added more lincense information of used data and software.
195
+
196
+ ### Changed
197
+ - Updated GitHub actions to use Node.js 20.
198
+ - Renamed "Usage" to "About" in web frontend.
199
+ - Refactored Jinja templates for web frontend.
200
+ - Download of EDB information now solely uses its GitLab repo.
201
+ - Increased vuln table width in web frontend for larger screen sizes.
202
+
203
+ ### Fixed
204
+ - Updated and fixed test cases.
205
+ - Fixed install of Python packages.
206
+ - Small bug fixes and improvements.
207
+
208
+
209
+ ## v0.5.1 - 2024-04-26
210
+ ### Added
211
+ - A flag to use the best matching *created* CPE automatically in CLI.
212
+ - A flag to print search_vulns version.
213
+ - endoflife.date data is now also reported for deprecated / equivalent CPEs.
214
+ - Add CPEs only contained in the NVD's vuln data to the CPE-DB.
215
+ - Add references to blog posts and a public instance.
216
+
217
+ ### Fixed
218
+ - Install of dependencies in automated install script.
219
+ - Some bug fixes and improvements in web frontend.
220
+ - Improvements to version comparison for more complex version numbers.
221
+ - Setting up the API tables if the database already existed.
222
+ - Fix pipeline to rebuild release assets regularly.
223
+
224
+
225
+ ## v0.5.0 - 2024-04-13
226
+ ### Added
227
+ - Added a completely new web frontend, which is not just more beautiful but also comes with
228
+ additional functionalities.
229
+ - Added endoflife.date as new data source.
230
+ - Added information from CISA about known exploited vulnerabilities.
231
+ - The web server can be configured to use reCAPTCHA protection and manage API keys.
232
+ - The web server now provides an official API.
233
+ - Added MariaDB as second database option.
234
+ - Vulnerability search is now more accurate by managing some of the NVD's
235
+ poorly formatted entries better.
236
+ - Added an option to return vulnerabilities, which only apply to one singular product
237
+ version according to the NVD entry, when an earlier version is queried.
238
+ - Added equivalent CPEs and improvements in cpe_search.
239
+ - Use an additional resource for equivalent CPEs from Debian.
240
+ - Implement more extensive CPE creation capabilities.
241
+
242
+ ### Changed
243
+ - CPE creation was moved into the cpe_search module.
244
+ - The vulnerability search code was deduplicated.
245
+ - The vulnerability search code was simplified.
246
+ - Improved cpe_search such that a more holistic view of all available CPEs for a
247
+ query is provided.
248
+ - Removed the unused "with_cpes" column from the vulnerability database.
249
+ - Removed the in-memory mode if SQLite is used.
250
+ - Improved version comparison with complex versions or somewhat artifical versions
251
+ created by the NVD.
252
+ - Update test cases with new data and coverage of new functionalities.
253
+ - Created a separate resource folder to store resources in.
254
+ - Improve performance.
255
+
256
+ ### Fixed
257
+ - Fixed some small bugs here and there.
258
+
259
+
260
+ ## v0.4.13 - 2024-02-22
261
+ ### Added
262
+ - Store a client's configuration in the web app persistently on the client.
263
+ - Improve CPE retrieval for THE Flask from PalletsProjects.
264
+
265
+ ### Fixed
266
+ - Display bug of related queries in web frontend.
267
+ - Bug in version comparison with more complex versions.
268
+ - Bug in update process with custom config file.
269
+
270
+
271
+ ## v0.4.12 - 2024-02-06
272
+ ### Added
273
+ - New config file concept, which simplifies a web server deployment
274
+ - Individual words in user queries are weighed to improve the matching of query to CPE.
275
+ - Tooltip for EDB checkbox in web app
276
+ - Equivalent CPE for Kubernetes API server
277
+
278
+ ### Changed
279
+ - The version detection in queries has been improved, such that more new CPEs can be created.
280
+ - Don't keep track of cveid_to_edbid.json mapping in GitHub repo any more.
281
+
282
+ ### Fixed
283
+ - Update test cases with new vulns.
284
+
285
+
286
+ ## v0.4.11 - 2024-01-09
287
+ ### Fixed
288
+ - Update test cases with new vulns and exploits.
289
+
290
+
291
+ ## v0.4.10 - 2023-12-21
292
+ ### Fixed
293
+ - Update test cases with new exploits.
294
+ - Strip user queries before macthing them to a CPE.
295
+
296
+
297
+ ## v0.4.9 - 2023-12-12
298
+ ### Added
299
+ - Update cpe_search submodule and adapt search_vulns code to it:
300
+ - cpe_search uses an improved matching algorithm with weights
301
+ - create more alternative queries, e.g. for JS packages and Bootstrap
302
+ - fixes some bugs in cpe_search
303
+
304
+ ### Fixed
305
+ - Update test cases with new exploits.
306
+
307
+
308
+ ## v0.4.8 - 2023-12-08
309
+ ### Added
310
+ - Equivalent CPEs for Amanda Network Backup, Apport, AppArmor and Accountsservice
311
+
312
+ ### Changed
313
+ - Update cpe_search and adapt to its updated interface.
314
+
315
+ ### Fixed
316
+ - Update test cases with new CVEs and exploits.
317
+
318
+
319
+ ## v0.4.7 - 2023-11-29
320
+ ### Fixed
321
+ - Fixed bug in cpe_search if a query with the keyword "for" was made
322
+ - Fixed caching bug in search_vulns web server
323
+
324
+
325
+ ## v0.4.6 - 2023-11-27
326
+ ### Added
327
+ - New CPE equivalence for Swagger UI
328
+ - Update CVE <-> EDB mapping
329
+
330
+ ### Fixed
331
+ - Update test cases with new CVE and exploit.
332
+
333
+
334
+ ## v0.4.5 - 2023-11-09
335
+ ### Added
336
+ - New CPE equivalence for Handlebars.js.
337
+ - New test cases for Handlebars.js.
338
+
339
+ ### Fixed
340
+ - Expand CPE wildcard replacement when searching for vulnerabilities with an exactly matching CPE.
341
+
342
+
343
+ ## v0.4.4 - 2023-11-08
344
+ ### Fixed
345
+ - Update test cases with new CVE.
346
+
347
+
348
+ ## v0.4.3 - 2023-11-01
349
+ ### Fixed
350
+ - Update test cases with new CVEs and CPEs.
351
+
352
+
353
+ ## v0.4.2 - 2023-10-24
354
+ ### Fixed
355
+ - Update test cases with new CVEs and exploits.
356
+
357
+
358
+ ## v0.4.1 - 2023-10-16
359
+ ### Fixed
360
+ - The scheduled workflow to update release assets now references the new CPE dictionary file.
361
+
362
+
363
+ ## v0.4.0 - 2023-10-14
364
+ ### Changed
365
+ - Speed up the search of CPEs even more. To achieve this, more data required by the match algorithm is precomputed now. Also, the file format of the CPE dictionary was changed from CSV to SQLite. Finally, a memory-based variant was brought back for the CPE search.
366
+
367
+
368
+ ## v0.3.0 - 2023-10-12
369
+ ### Added
370
+ - A script to run all tests at once.
371
+ - Web UI: Highlight likely false positive if a vulnerability only affect a general CPE.
372
+ - Manually added equivalent CPE entries for multiple Citrix products.
373
+
374
+ ### Changed
375
+ - Changed scheduled workflow for building resources, such that no new release is created. Instead the latest release is updated with the latest artifacts.
376
+ - Changed the test workflow, such that the DB is only rebuilt if its build code has changed.
377
+ - Manual entries for equivalent CPEs are now stored in a separate file.
378
+ - Speed up the search of CPEs by modifying the underlying algorithm. Also remove the memory-based algorithm for CPE search.
379
+
380
+ ### Fixed
381
+ - Some minor bugs
382
+
383
+
384
+ ## v0.2.0 - 2023-09-05
385
+ ### Added
386
+ - Various improvements for matching a text query to a CPE via the [cpe_search](https://github.com/ra1nb0rn/cpe_search) submodule, which was updated multiple times.
387
+ - A web server frontend based on Flask was added. This makes it easier to use the tool and allows for some user interaction.
388
+ - In-depth exporting functionality for vulnerability data in web frontend as CSV or Markdown.
389
+ - Show alternative queries in web frontend if a CPE match for the user query could not be found automatically.
390
+ - Creation of new CPEs in web frontend, based on user query and existing CPEs.
391
+ - Include NVDs exploit references in web frontend.
392
+ - Add exploit references from PoC-in-GitHub.
393
+ - Add testing pipeline and test cases.
394
+ - Consider deprecated CPEs or more than one CPE for the same product when searching for vulnerabilities (e.g. Piwik --> Matomo).
395
+
396
+ ### Changed
397
+ - All resource data can now be kept in memory. If this is enabled, subsequent queries get processed significantly faster, at the cost of occupying more memory. By default, only the web server has this option enabled and loads all data into memory upon startup. The CLI, however, is meant to run memory-efficient and only loads required data as necessary.
398
+ - Use the NVD's CVE and CPE APIs instead of its now legacy data feeds.
399
+
400
+ ### Fixed
401
+ - Loads of bugs, old ones and new ones.
402
+ - Improved parsing of the NVD's vulnerability and software data.
403
+ - Fixed link to Exploit-DB repo, because the GitHub project was archived and moved to GitLab.
404
+
405
+
406
+ ## v0.1.2 - 2022-01-22
407
+
408
+ ### Changed
409
+ - Reduce build frequency of vulnerability and software databases via GitHub workflow.
410
+ - Delete last soft release when a new soft release is published. "Soft" release means that only the resource files were updated.
411
+
412
+
413
+ ## v0.1.1 - 2022-01-21
414
+
415
+ ### Added
416
+ - Add a GitHub workflow to build the vulnerability and software databases automatically on push to master branch and once every couple of days.
417
+
418
+ ### Changed
419
+ - Instead of building the software and vulnerability resource files manually every time on install / update, these files are now downloaded from the latest release on GitHub.
420
+
421
+
422
+ ## v0.1.0 - 2022-01-20
423
+
424
+ ### Added
425
+ - Initial release of the tool.
@@ -0,0 +1,15 @@
1
+ FROM ubuntu:latest
2
+
3
+ WORKDIR /home/search_vulns
4
+ RUN apt-get update >/dev/null && \
5
+ DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip tzdata locales sudo git build-essential gcc >/dev/null && \
6
+ git clone --quiet --depth 1 https://github.com/ra1nb0rn/search_vulns.git . && \
7
+ pip3 install -e . --break-system-packages && \
8
+ search_vulns --full-install && \
9
+ search_vulns -u && \
10
+ rm -rf /var/lib/apt/lists/*
11
+
12
+ RUN sed -i -e "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/" /etc/locale.gen && \
13
+ dpkg-reconfigure --frontend=noninteractive locales && \
14
+ update-locale LANG=en_US.UTF-8
15
+ ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2025 Dustin Born
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.