Skip to content

The ARF report does not contain a reference to the report element with OVAL CPE checks #1950

Open
@Honny1

Description

@Honny1

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:

  1. 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
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcpeCommon Platform Enumeration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions