cisagov / pe-reports

Automated process to build and distribute Posture & Exposure Reports' bi-weekly to customers.
Creative Commons Zero v1.0 Universal
17 stars 6 forks source link

Update fixes for command injections at bulletin_generator #599

Closed cduhn17 closed 1 year ago

cduhn17 commented 1 year ago

🗣 Description

Sanitize input from input variables. Revove the following code associated with htmx.js:

💭 Motivation and context

Based on the input that is possible it is a best practice to remove the chance of command execution.

✅ Pre-approval checklist

✅ Pre-merge checklist

✅ Post-merge checklist

coveralls commented 1 year ago

Coverage Status

coverage: 26.628% (-0.02%) from 26.647% when pulling 94059cee8dafcd688b09b0c2d10f07f07dc83dd9 on CD-command-injection-fixes into bb77b5eb32d454d149b668db236816b56b49e8cd on develop.

cduhn17 commented 1 year ago

@dav3r ,

The other changes are third part libs, so we just removed them to pass the checks. Its not our evaluation, that is all of the information that I have at this point.

dav3r commented 1 year ago

@dav3r ,

The other changes are third part libs, so we just removed them to pass the checks. Its not our evaluation, that is all of the information that I have at this point.

Which third party libraries are you removing? I was referring to the HTML changes here, here, and here. Regardless, you should update the content in the PR's description to document why these changes are included.

cduhn17 commented 1 year ago

@dav3r ,

I have updated the PR description. The third-party js lib is HTMX js.

dav3r commented 1 year ago

I have updated the PR description. The third-party js lib is HTMX js.

@cduhn17 I don't see any updates to this PR's description - it looks like there haven't been any edits in 2 days.

cduhn17 commented 1 year ago

@dav3r , Should be updated now.