Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Security] WebSocket ssl Parameter Accepts False/None Without Warning

已关闭
#512 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
56/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python

调研方向

从 common/src/binance_common/websocket.py 中 init_connection 代码的第 164-170 行和第 182-188 行附近开始,然后跟踪 https_agent 的配置直到 aiohttp.ws_connect。使用 https_agent=False 重现一次连接,并验证完成的更改不再默默允许禁用 SSL 验证,同时安全影响已得到记录。

由索引模型根据 Issue 内容生成。

描述

Answered

Bug Name

WebSocket ssl Parameter Accepts False/None Without Warning

Attack Scenario

The WebSocket init_connection method passes configuration.https_agent directly to aiohttp.ws_connect(ssl=...). When ssl=False, aiohttp disables SSL verification entirely without any warning from the SDK.

Impact

A user who sets https_agent=False would silently disable TLS certificate verification for all WebSocket connections, enabling MITM attacks.

Components

File: common/src/binance_common/websocket.py (lines 164-170, 182-188). ssl parameter passed from configuration.https_agent.

Reproduction

  1. Create WebSocket configuration with https_agent=False.
  2. Connect to WebSocket API.
  3. SSL verification is silently disabled -- no warning or error.

Fix

Add a validation check: if https_agent is False, raise a warning or error. Document the security implications clearly.

Details

Finding ID: SEC-05
Severity: Low


Researcher: Independent Security Researcher -- Mefai Security Team

主要语言
Python
星标
2.9k
派生
708
平均合并
1 天 5 小时
30 天内合并 PR
4

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

binance/binance-connector-python 的其他 Issue

查看 binance/binance-connector-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。