aboutcode-org / aboutcode-org/scancode-toolkit

Company security scanner flags and blocks internet access due to "vulnerable" rexml gemspec version

Đang mở
#5,038 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

My company runs an (obnoxious) security scan that flags things that may not actually be a security concern, and in this case it has picked up the file `scancode-toolkit/tests/packagedcode/data/rubygems/installed/specifications/rexml-3.2.5.gemspec` as meaning that there is a copy of rexml version 3.2.5 installed that has a potential vulnerability that was fixed in version 3.3.9.

The super obnoxious part is that there is no way to permanently tell them the file is not an issue, and after a little while they block internet access on the computers that detect this "outdated component". Given that this file is checked into the scancode repository, that means I can't have a cloned copy of the scancode repository because the same file will just keep getting detected.

The solution is possibly updating the version referenced in the scancode-toolkit repository, though if scancode is using it for a regression test that looks for vulnerabilities in an old version then there is a certain irony here. Perhaps rather than test data files living in the main repository, they would be better off in a separate repository and included as a git submodule, which would at least enable having a clone of the main scancode-toolkit repository without setting off overzealous security scanners.

The 2nd entry shows the gemspec file in question being flagged. The others got resolved with `brew cleanup -s` to remove the old stuff, but the only solution I have for the scancode-toolkit repository is deleting my local clone.

Image

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

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

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.