Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

OAuth Callback Missing Hardened TLS Configuration

Đang mở
#89 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@andrewmusselman đang làm issue này rồi.

Từ ngày 24/4/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

ASVS

Issue: FINDING-068 - OAuth Callback Missing Hardened TLS Configuration

Labels: bug, security, priority:medium, asvs-level:L2

ASVS Level(s): [L2-only]

Description:

Summary

The OAuth callback endpoint creates a plain aiohttp.ClientSession instead of using create_secure_session(), missing TLS 1.2+ enforcement, explicit certificate verification, hostname checking, and secure cipher suite selection. This creates a potential man-in-the-middle vulnerability in the OAuth token exchange flow.

Details

Affected Files and Lines:

  • src/asfquart/generics.py:98 - Plain ClientSession without hardened TLS

The OAuth token exchange uses default TLS settings instead of the application's hardened configuration.

Recommended Remediation

Use create_secure_session() for hardened TLS configuration:

async with util.create_secure_session(
    timeout=aiohttp.ClientTimeout(sock_read=15)
) as session:
    rv = await session.get(OAUTH_URL_CALLBACK % encoded_code)
Acceptance Criteria
  • Hardened session used
  • TLS 1.2+ enforced
  • Certificate verification enforced
  • Hostname checking enforced
  • Integration test verifies configuration
  • Unit test verifying the fix
References
  • Source reports: L2:1.3.6.md
  • Related findings: FINDING-067
  • ASVS sections: 1.3.6
Priority

Medium

Ngôn ngữ chính
Python
Star
7
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/infrastructure-asfquart

Tất cả issue của apache/infrastructure-asfquart

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.