From eb62c0376be442a801f134698eed2de88fb3ea3a Mon Sep 17 00:00:00 2001 From: skyanth Date: Sat, 30 Jul 2016 14:37:58 +0200 Subject: [PATCH] retest status implemented --- xml/RELEASE_NOTES.md | 16 +++++++ xml/dtd/pentestreport.xsd | 30 ++++++++++++ xml/xslt/auto.xsl | 85 +++++++++++++++++++++++---------- xml/xslt/findings.xslt | 99 ++++++++++++++++++++++++++------------- 4 files changed, 174 insertions(+), 56 deletions(-) diff --git a/xml/RELEASE_NOTES.md b/xml/RELEASE_NOTES.md index 5329064..df868c7 100644 --- a/xml/RELEASE_NOTES.md +++ b/xml/RELEASE_NOTES.md @@ -1,6 +1,22 @@ RELEASE NOTES ============= +July 30, 2016 +------------- + +### Finding status + +New feature for retests: finding status to indicate if, in context of a follow-up pentest, a finding is new, resolved, still unresolved or not retested. + +The `` element now has an optional `@status` attribute. Possible values are: + +- `new` (default) +- `unresolved` +- `resolved` +- `not_retested` + +The `` element now likewise has this optional `@status` attribute with the same possible values. You can add it to generate a finding summary table containing only the findings with a specific status. + June 15, 2016 ------------- diff --git a/xml/dtd/pentestreport.xsd b/xml/dtd/pentestreport.xsd index 4cf5029..4c5f80d 100644 --- a/xml/dtd/pentestreport.xsd +++ b/xml/dtd/pentestreport.xsd @@ -186,11 +186,31 @@ + + + + + + + + + + + + + + + + + + + + @@ -225,6 +245,16 @@ + + + + + + + + + + diff --git a/xml/xslt/auto.xsl b/xml/xslt/auto.xsl index 59cac32..6a473cb 100644 --- a/xml/xslt/auto.xsl +++ b/xml/xslt/auto.xsl @@ -2,7 +2,7 @@ - + @@ -16,9 +16,10 @@ - - + @@ -39,6 +40,7 @@ + @@ -66,7 +68,21 @@ - + + + + + + + + + + + + + @@ -118,6 +134,7 @@ + @@ -140,7 +157,21 @@ - + + + + + + + + + + + + + @@ -209,19 +240,20 @@ - + - - - - - - - - - - - + + + + + + + + + + + @@ -235,7 +267,7 @@ - + @@ -413,7 +445,8 @@ - + @@ -479,7 +512,8 @@ - + @@ -498,7 +532,8 @@ -   + +   @@ -521,13 +556,15 @@ - + - + + - + + diff --git a/xml/xslt/findings.xslt b/xml/xslt/findings.xslt index 1998a1c..c3d15e6 100644 --- a/xml/xslt/findings.xslt +++ b/xml/xslt/findings.xslt @@ -1,68 +1,103 @@ + xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" + xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> - - Vulnerability ID: - - - - Vulnerability type: - - - - - Threat level: - - + + + + + + + 2 + + Vulnerability ID: + + + + + + + Retest status: + + + + + + + + + Vulnerability type: + + + + + + + + Threat level: + + + + + + + + + + + + - + - - + + Description: - + - - WARNING: description containing img or table may not look very good in the finding summary table. Consider using a description_summary element instead. - - + + WARNING: description containing img or table may not look very good in the + finding summary table. Consider using a description_summary element + instead. + + - + Technical description: - + Impact: - + Recommendation: - + - - WARNING: recommendation containing img or table may not look very good in the finding summary table. Consider using a recommendation_summary element instead. + + WARNING: recommendation containing img or table may not look very good in + the finding summary table. Consider using a recommendation_summary element + instead. - - \ No newline at end of file + +