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

ci: improve codeql configuration #2032

Merged
merged 3 commits into from
May 5, 2023
Merged

ci: improve codeql configuration #2032

merged 3 commits into from
May 5, 2023

Conversation

dpgaspar
Copy link
Owner

@dpgaspar dpgaspar commented May 5, 2023

Description

First iteration on codeQL configuration was not correct, this one is heavily based on the default but should get things started

ADDITIONAL INFORMATION

  • Has associated issue:
  • Is CRUD MVC related.
  • Is Auth, RBAC security related.
  • Changes the security db schema.
  • Introduces new feature
  • Removes existing feature

from os import system

run_cmd = request.args.get("run")
system(run_cmd)

Check failure

Code scanning / CodeQL

Uncontrolled command line

This command line depends on a [user-provided value](1).
@expose("/test", methods=["GET"])
def test(self) -> Response:
run_cmd = request.args.get("run")
eval(run_cmd)

Check failure

Code scanning / CodeQL

Code injection Critical

This code execution depends on a
user-provided value
.
@dpgaspar dpgaspar changed the title test: codeQL ci: improve codeql configuration May 5, 2023
@dpgaspar dpgaspar merged commit e83af73 into master May 5, 2023
8 checks passed
@dpgaspar dpgaspar deleted the test/ci-codeql branch May 5, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant