Skip to content

Commit 1b5b37c

Browse files
authored
Merge pull request #422 from tls-attacker/fix/dheProbeNullProperty
Added missing TlsAnalyzedProperty entries
2 parents f8284e5 + 8ab8f79 commit 1b5b37c

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

TLS-Client-Scanner/src/main/java/de/rub/nds/tlsscanner/clientscanner/probe/DheParameterProbe.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public DheParameterProbe(ParallelExecutor parallelExecutor, ClientScannerConfig
5858
super(parallelExecutor, TlsProbeType.DHE_PARAMETERS, scannerConfig);
5959
register(
6060
TlsAnalyzedProperty.SUPPORTS_MODULUS_ONE,
61+
TlsAnalyzedProperty.SUPPORTS_MODULUS_ZERO,
6162
TlsAnalyzedProperty.SUPPORTS_GENERATOR_ONE,
63+
TlsAnalyzedProperty.SUPPORTS_GENERATOR_ZERO,
6264
TlsAnalyzedProperty.SUPPORTS_MOD3_MODULUS,
6365
TlsAnalyzedProperty.SUPPORTS_EVEN_MODULUS,
6466
TlsAnalyzedProperty.LOWEST_POSSIBLE_DHE_MODULUS_SIZE,
@@ -212,8 +214,12 @@ private HashMap<SmallSubgroupType, TlsAnalyzedProperty> getSmallSubgroupTypeMap(
212214
HashMap<SmallSubgroupType, TlsAnalyzedProperty> smallSubgroupTypeMap = new HashMap<>();
213215
smallSubgroupTypeMap.put(
214216
SmallSubgroupType.MODULUS_ONE, TlsAnalyzedProperty.SUPPORTS_MODULUS_ONE);
217+
smallSubgroupTypeMap.put(
218+
SmallSubgroupType.MODULUS_ZERO, TlsAnalyzedProperty.SUPPORTS_MODULUS_ZERO);
215219
smallSubgroupTypeMap.put(
216220
SmallSubgroupType.GENERATOR_ONE, TlsAnalyzedProperty.SUPPORTS_GENERATOR_ONE);
221+
smallSubgroupTypeMap.put(
222+
SmallSubgroupType.GENERATOR_ZERO, TlsAnalyzedProperty.SUPPORTS_GENERATOR_ZERO);
217223
return smallSubgroupTypeMap;
218224
}
219225

TLS-Scanner-Core/src/main/java/de/rub/nds/tlsscanner/core/constants/TlsAnalyzedProperty.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ public enum TlsAnalyzedProperty implements AnalyzedProperty {
319319
SUPPORTS_EVEN_MODULUS(TlsAnalyzedPropertyCategory.FFDHE),
320320
SUPPORTS_MOD3_MODULUS(TlsAnalyzedPropertyCategory.FFDHE),
321321
SUPPORTS_MODULUS_ONE(TlsAnalyzedPropertyCategory.FFDHE),
322+
SUPPORTS_MODULUS_ZERO(TlsAnalyzedPropertyCategory.FFDHE),
322323
SUPPORTS_GENERATOR_ONE(TlsAnalyzedPropertyCategory.FFDHE),
324+
SUPPORTS_GENERATOR_ZERO(TlsAnalyzedPropertyCategory.FFDHE),
323325
WEAKEST_DH_STRENGTH(TlsAnalyzedPropertyCategory.FFDHE),
324326
/** DTLS */
325327
SUPPORTS_DTLS_FRAGMENTATION(TlsAnalyzedPropertyCategory.QUIRKS),

TLS-Server-Scanner/src/main/resources/rating/influencers.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,12 @@
24942494
<ratingInfluencer>
24952495
<property>SUPPORTS_GENERATOR_ONE</property>
24962496
</ratingInfluencer>
2497+
<ratingInfluencer>
2498+
<property>SUPPORTS_MODULUS_ZERO</property>
2499+
</ratingInfluencer>
2500+
<ratingInfluencer>
2501+
<property>SUPPORTS_GENERATOR_ZERO</property>
2502+
</ratingInfluencer>
24972503
<ratingInfluencer>
24982504
<property>DTLS_FRAGMENTATION_REQUIRES_EXTENSION</property>
24992505
</ratingInfluencer>

TLS-Server-Scanner/src/test/java/de/rub/nds/tlsscanner/serverscanner/probe/HttpFalseStartProbeIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ protected void prepareReport() {}
3131

3232
@Override
3333
protected boolean executedAsPlanned() {
34-
return verifyProperty(TlsAnalyzedProperty.SUPPORTS_HTTP_FALSE_START, TestResults.UNCERTAIN);
34+
return verifyProperty(TlsAnalyzedProperty.SUPPORTS_HTTP_FALSE_START, TestResults.TRUE);
3535
}
3636
}

TLS-Server-Scanner/src/test/java/de/rub/nds/tlsscanner/serverscanner/report/rating/DefaultInfluencersIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,8 @@ public void createDefaultRatingInfluencers() throws IOException, JAXBException {
11661166
TlsAnalyzedProperty.SUPPORTS_MOD3_MODULUS,
11671167
TlsAnalyzedProperty.SUPPORTS_MODULUS_ONE,
11681168
TlsAnalyzedProperty.SUPPORTS_GENERATOR_ONE,
1169+
TlsAnalyzedProperty.SUPPORTS_MODULUS_ZERO,
1170+
TlsAnalyzedProperty.SUPPORTS_GENERATOR_ZERO,
11691171
TlsAnalyzedProperty.DTLS_FRAGMENTATION_REQUIRES_EXTENSION,
11701172
TlsAnalyzedProperty
11711173
.DTLS_FRAGMENTATION_WITH_INDIVIDUAL_PACKETS_REQUIRES_EXTENSION,

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>de.rub.nds</groupId>
66
<artifactId>protocol-toolkit-bom</artifactId>
7-
<version>4.1.2</version>
7+
<version>4.1.6</version>
88
</parent>
99

1010
<groupId>de.rub.nds.tls.scanner</groupId>

0 commit comments

Comments
 (0)