Skip to content

Python: Pycurl SSL Disabled  #835

Description

Query PR

github/codeql#16812

Language

Python

CVE(s) ID list

CVE-2023-0509

CWE

CWE-295

Report

Pycurl is a library which provides curl binding in python. The original library is partially modelled in codeql. This PR adds support to test for SSL certificate validation when using pycurl.

The query aims to detect the vulnerable pattern found in CVE-2023-0509.

curl.setopt(pycurl.SSL_VERIFYPEER, 0)
curl.setopt(pycurl.SSL_VERIFYHOST,0)

There are many more detections I have found through MRVA. I will keeps updating this issue as and when they convert to CVE's.

in the meantime, the database for the original CVE can be downloaded from the below links.

https://file.io/VAqVTWYqYIf1
https://filetransfer.io/manage-package/5CmMEURU

Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc).

  • Yes
  • No

Blog post link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions