Skip to content

Python: Add support of clickhouse-driver package #365

Description

@japroc

Query

Link to pull request with your CodeQL query:

Relevant PR: github/codeql#5889

CVE ID(s)

List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.

  • no CVEs

Report

Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.

The idea of this PR is to improve default SQLInjection query by adding ClickHouseDriver.qll module with describes clickhouse-driver PyPI package. This module hsa self Client with several methods to execute query. Also clickhouse-driver has a PEP249 interface.

When this module will be moved from experimental folder to standart library, it would automatically improve existing Sqlnjection.ql query. But for now, for a demonstration, i created a separate query which imports experimental module and repeats standart query. I also added python snippet for clickhouse-driver usage and qhelp which describes different cases from that example code.

  • Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc). We would love to have you spread the word about the good work you are doing
    Possibly i will share my experience on the upcoming conference on Defense Talk about SAST.

Result(s)

Provide at least one useful result found by your query, on some revision of a real project.

Going to search for some explotable findings on not latest revisions of projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    All For OneSubmissions to the All for One, One for All bounty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions