Description
Description of Problem:
In the ARF report, there are elements <arf:report id="ovalN">
(replace N with int). These elements are referenced in the rule result, but not every element with the id 'ovalN' is referenced.
In this case that discovered this problem, there are three report elements with id ovalN
. The report element with id oval0
contains OVAL checks of the rules. The report element with id oval1
contains the vulnerability check written in OVAL. These two ids are referenced in the rule results, but there is one more element with the id oval2
, this element contains the CPE OVAL checks, but nothing references this element in the CPE-AL or CPE dictionary. If you scan without the --fetch-remote-resources
parameter, the problem is similar, but there are different IDs or IDs are shuffled.
This issue was discovered when opensap-report tried to generate a report with an ARF report attached. The openscap-report expected OVAL CPE checks to be placed in the element report with id oval1
. In this case, a check was made with the --fetch-remote-resources
parameter. This causes the vulnerability checks written in OVAL language to appear in the ARF report in the report element with id oval1
and the OVAL CPE checks to be located in the report element with id oval2
.
OpenSCAP Version:
OpenSCAP command line tool (oscap) 1.3.6
Same on 1.3.7 with Fedora 36
Operating System & Version:
Red Hat Enterprise Linux 9.1 (Plow)
Steps to Reproduce:
- execute:
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_anssi_bp28_enhanced --fetch-remote-resources --results-arf arf/arf_profile_anssi_bp28_enhanced.xml --report arf/report_profile_anssi_bp28_enhanced.html /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml
- Inspect the ARF report
Actual Results:
The ARF report does not contain a reference to the report element that contain OVAL CPE controls.
Expected Results:
The ID of element <arf:report id="ovalN">
should be referenced in CPE applicability language or the CPE dictionary.
Additional Information / Debugging Steps:
Try to search for oval2
. It will be just one match in the ARF file.
Here is the ARF report: arf_profile_anssi_bp28_enhanced.zip