Add new state: Unicode compatibility normalization
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu trong python/ql/lib/semmle/python/security/dataflow/PathInjectionQuery.qll, đặc biệt là các dòng 20-28, và so sánh các trạng thái chuẩn hóa đường dẫn và kiểm tra an toàn hiện có với trạng thái chuẩn hóa tương thích Unicode được báo cáo. Sử dụng biểu đồ của issue để theo dõi thứ tự cần thiết; được xem là hoàn tất khi query mô hình hóa việc chuẩn hóa tương thích ở vị trí liên quan mà không bỏ sót trường hợp nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hey ,
I noticed that you are considering only two states:
- One regarding the path normalization if it is done or not before the safe check
- Second concerns the safe check.
as shown next:
However, there is a third state that is a required one: Unicode normalized. If ever a Unicode normalization is performed with a compatibility algorithm (NFKC or NFKD), the query would miss some cases precisely those ones where the Unicode normalization is not performed before the path normalization and the safe check. I draw a little chart to depict my saying:
The previous chart shows that when you consider a potential Unicode compatibility normalization, it is a required step before path normalization and safe check. If ever placed between the first two steps or after the last one, that would yield a vulnerable case that got missed due to the fact that the Unicode normalization may reintroduce unexpected special characters such as .. and /.
Regards
@Sim4n6
- Ngôn ngữ chính
- CodeQL
- Star
- 10.1k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 134
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/codeql
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
C#: cs/simplifiable-boolean-expression false positive on Nullable<bool> compared with a literal Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
false-positive
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
false-positive
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Tất cả issue của github/codeql
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sipyourdrink-ltd/bernstein#6191 ·
-
security severity:low track:open-source
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
[addtool] DeepZero Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gwen001/offsectools_www#2055 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
WalletConnect/actions#112 ·