| |
---|
| | } |
---|
| | |
---|
| | // set OWASP counts |
---|
| | $issueOwasp = explode(":", $singlevuln['owasp']); |
---|
| | ${$issueOwasp[0]}++; |
---|
| | if($issueOwasp[0] !== "N/A") |
---|
| | ${$issueOwasp[0]}++; |
---|
| | |
---|
| | $hostSummary = (isset($singlevuln['hosts']) && $singlevuln['hosts'] <> "") ? $singlevuln['hosts'] : "N/A"; |
---|
| | // populate arrays for small vuln tables |
---|
| | // key = title, 0 = desc, 1 = fix, 2 = hosts, 3 = owasp, 4, page ref |
---|
| |
---|
| | //populate owasp findings tables |
---|
| | foreach ($riskRatings as $riskKey => $riskVal) { |
---|
| | if(!empty( ${"Summary_$riskVal"} )){ |
---|
| | foreach (${"Summary_$riskVal"} as $sumKey => $sumVal) { |
---|
| | if($sumVal[3] == "N/A") |
---|
| | break; // no N/A owasp table! |
---|
| | if( ${$sumVal[3]."_table"} == ""){ // if is first entry |
---|
| | ${$sumVal[3]."_table"} = ' |
---|
| | <table:table table:name="Table8" table:style-name="Table8"> |
---|
| | <table:table-column table:style-name="Table8.C"/> |
---|
| |
---|
| | |