dradis-nexpose 4.8.0 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e44d720fddfe5c5d13f9771c558d3d29ee3cd8c64001d81903616f32fadf09b7
4
- data.tar.gz: 61f8ad62cf1197c13ac785a1506b0c731888ef0dd8b70582088bd55fc1bf8f2f
3
+ metadata.gz: c51cb9c78fc398a2d25cf84f5e24c1b005f6e0da7f23c042ffdea3c2b4c994fb
4
+ data.tar.gz: dba981353382bcfb6a31951d7726dcfd046257b9e6beeb7432b851f733c3609a
5
5
  SHA512:
6
- metadata.gz: 536521fbca96e0a24494395e1a87c45cd8810c8e8ca7712f65a9b369147f68bd8a0cb27d3f1efcc527fffcb151c7137f3c72baff15931cb5624dbf8f54c1df47
7
- data.tar.gz: d9fa33d0eaf4c92a740dc18a237000da5620047ee75dcdd5f714e7fe97d1027fcf952d735ecb978a40729acf2b50152ce13649bf683f1edc37c8718eb814a70a
6
+ metadata.gz: 5ed17ede86157d31fe5f1d080ede9e396c8e17669232a1e6e8b40c87a5490d8870f3652f6941bf7ce435eb1615ca6cc81ebe5d6400bde60afd0b6457a90bddd1
7
+ data.tar.gz: 87049dca0c73c307389d7664cd639ff84ffbbf1305cbe86691924d9e8493289a046f8237601c6e54ea806c32231ea28854343330d66c28d2f1f601657615c1ec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v4.9.0 (June 2023)
2
+ - Parse inline code, not just code blocks
3
+ - Wrap ciphers in the `ssl-weak-message-authentication-code-algorithms` finding
4
+
1
5
  v4.8.0 (April 2023)
2
6
  - No changes
3
7
 
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 8
11
+ MINOR = 9
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -8,7 +8,7 @@ module Nexpose
8
8
  # Instead of providing separate methods for each supported property we rely
9
9
  # on Ruby's #method_missing to do most of the work.
10
10
  class Vulnerability
11
- SSL_CIPHER_VULN_IDS = %w[ssl-anon-ciphers ssl-des-ciphers ssl-3des-ciphers ssl-export-ciphers ssl-null-ciphers ssl-only-weak-ciphers ssl-static-key-ciphers rc4-cve-2013-2566 ssl-cve-2016-2183-sweet32 tls-dhe-export-ciphers-cve-2015-4000].freeze
11
+ SSL_CIPHER_VULN_IDS = %w[ssl-anon-ciphers ssl-des-ciphers ssl-3des-ciphers ssl-export-ciphers ssl-null-ciphers ssl-only-weak-ciphers ssl-static-key-ciphers ssl-weak-message-authentication-code-algorithms rc4-cve-2013-2566 ssl-cve-2016-2183-sweet32 tls-dhe-export-ciphers-cve-2015-4000].freeze
12
12
 
13
13
  # Accepts an XML node from Nokogiri::XML.
14
14
  def initialize(xml_node)
@@ -112,8 +112,14 @@ module Nexpose
112
112
  def cleanup_html(source)
113
113
  result = source.to_s
114
114
  result.gsub!(/<ContainerBlockElement>(.*?)<\/ContainerBlockElement>/m){|m| "#{ $1 }"}
115
- result.gsub!(/<Paragraph preformat=\"true\">(\s*)<Paragraph preformat=\"true\">(.*?)<\/Paragraph>(\s*)<\/Paragraph>/mi){|m| "\nbc. #{ $2 }\n\n"}
116
- result.gsub!(/<Paragraph preformat=\"true\">(.*?)<\/Paragraph>/mi){|m| "\nbc. #{ $1 }\n\n"}
115
+ result.gsub!(/<Paragraph preformat=\"true\">(\s*)<Paragraph preformat=\"true\">(.*?)<\/Paragraph>(\s*)<\/Paragraph>/mi) do
116
+ text = $2
117
+ text[/\n/] ? "\nbc.. #{ text }\n\np. " : "@#{text}@"
118
+ end
119
+ result.gsub!(/<Paragraph preformat=\"true\">(.*?)<\/Paragraph>/mi) do
120
+ text = $1
121
+ text[/\n/] ? "\nbc.. #{ text }\n\np. " : "@#{text}@"
122
+ end
117
123
  result.gsub!(/<Paragraph>(.*?)<\/Paragraph>/m){|m| "#{ $1 }\n"}
118
124
  result.gsub!(/<Paragraph>|<\/Paragraph>/, '')
119
125
  result.gsub!(/<UnorderedList(.*?)>(.*?)<\/UnorderedList>/m){|m| "#{ $2 }"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dradis-nexpose
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
4
+ version: 4.9.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: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins