dradis-calculator_cvss 4.12.0 → 4.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +0 -2
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb +3 -5
- data/dradis-calculator_cvss.gemspec +1 -1
- data/lib/dradis/plugins/calculators/cvss/engine.rb +13 -7
- data/lib/dradis/plugins/calculators/cvss/gem_version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b87ecfb200a64c7bde0629c308d8403d90d47f20cbb282b621b21bfb0af36168
|
4
|
+
data.tar.gz: 86857a074dbb1aca4941e774fdb882330f16d946a66cca6cce77fcefa95911df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55840e477dafcaadb51349c4cf1ac82b5dc25a92dd7d47de71cbcb05ce4de9b81527b0a6fd96e43423ac5c5c3ca9c1f042cfccd67a58528b861facbd420ee186
|
7
|
+
data.tar.gz: 0ae5422f0ad9de8a7f439c35935f54481e324ca52c3088a116d9c8d9f48882a388064b80136873abbdabfedfcc9afc869a3d9f95ec16ac19c161d14163cdc36d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
This simple add-on adds a new page under `/calculators/cvss` for you to perform CVSS score calculations:
|
4
4
|
|
5
|
-
![
|
5
|
+
![cvss4_calculator](https://github.com/dradis/dradis-calculator_cvss/assets/111541062/fd957a70-c068-4453-908e-be50beff9325)
|
6
6
|
|
7
|
-
The Common Vulnerability Scoring System (CVSS) Version
|
7
|
+
The Common Vulnerability Scoring System (CVSS) Version 4.0, 3.1, 3.0 Calculator is heavily inspired in the one provided by [FIRST](https://www.first.org/cvss/calculator/3.0).
|
8
8
|
|
9
9
|
|
10
10
|
## Install
|
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
</li>
|
5
|
-
<% end %>
|
1
|
+
<li class="nav-item">
|
2
|
+
<a href="#cvss-tab" data-bs-toggle="tab" class="nav-link"><i class="fa-solid fa-calculator"></i> CVSS</a>
|
3
|
+
</li>
|
@@ -6,10 +6,6 @@ module Dradis::Plugins::Calculators::CVSS
|
|
6
6
|
provides :addon
|
7
7
|
description 'Risk Calculator: CVSS'
|
8
8
|
|
9
|
-
addon_settings :calculator_cvss do
|
10
|
-
settings.default_show = 1
|
11
|
-
end
|
12
|
-
|
13
9
|
initializer 'calculator_cvss.asset_precompile_paths' do |app|
|
14
10
|
app.config.assets.precompile += [
|
15
11
|
'dradis/plugins/calculators/cvss/manifests/application.css',
|
@@ -26,10 +22,20 @@ module Dradis::Plugins::Calculators::CVSS
|
|
26
22
|
end
|
27
23
|
|
28
24
|
initializer 'calculator_cvss.mount_engine' do
|
29
|
-
|
30
|
-
|
25
|
+
# By default, this engine is loaded into the main app. So, upon app
|
26
|
+
# initialization, we first check if the DB is loaded and the Configuration
|
27
|
+
# table has been created, before checking if the engine is enabled
|
28
|
+
Rails.application.reloader.to_prepare do
|
29
|
+
if (ActiveRecord::Base.connection rescue false) && ::Configuration.table_exists?
|
30
|
+
Rails.application.routes.append do
|
31
|
+
# Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable
|
32
|
+
# check inside the block to ensure the routes can be re-enabled without a server restart
|
33
|
+
if Engine.enabled?
|
34
|
+
mount Engine => '/', as: :cvss_calculator
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
31
38
|
end
|
32
39
|
end
|
33
|
-
|
34
40
|
end
|
35
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-calculator_cvss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|