Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check to make sure no harmful code can be run via oscap command eval #29

Open
gregelin opened this issue Aug 19, 2014 · 0 comments
Open

Comments

@gregelin
Copy link
Contributor

This is a DANGEROUS sequence. Need a way to escape hostile code.

    local scan_command="oscap xccdf eval --profile ${profile} --results ${resultsdir}/${profile}-results-$suffix.xml --report ${resultsdir}/${profile}-results-${suffix}.html --cpe ${CPE} ${SSGCONTENTDIR}/ssg-rhel6-xccdf.xml"

    __log_govready "Scanning system for compliance to profile ${PROFILE}"
    __log_govready "Running command: ${scan_command}"
    # run openscap checklist
    eval $scan_command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant