wbt5 / real-url

获取斗鱼&虎牙&哔哩哔哩&抖音&快手等 58 个直播平台的真实流媒体地址(直播源)和弹幕,直播源可在 PotPlayer、flv.js 等播放器中播放。
GNU General Public License v2.0
7.25k stars 1.53k forks source link

Cryptographic API Misuse Vulnerability: DES ECB used for encryption #460

Open gxx777 opened 9 months ago

gxx777 commented 9 months ago

DES is weak encryption algorithm and ECB is also a weak mode for block cipher. I have identified a security vulnerability in the /real-url project's use of DES ECB (Electronic Codebook) mode . This vulnerability can potentially expose sensitive information and compromise the security of the application.

locations: https://github.com/wbt5/real-url/blob/master/danmu/danmaku/yqs.py#L32 https://github.com/wbt5/real-url/blob/master/danmu/danmaku/yqs.py#L38 https://github.com/wbt5/real-url/blob/master/ppsport.py#L80

Recommendations: It is strongly recommended to update the project's code and use more secure encryption modes, such as AES CBC or AES GCM, for configuration. This will help mitigate the potential security risks associated with using DES ECB.Besides,the cryprography.io(https://cryptography.io/) crypto library is a good programming practices.

Additional Information: Please note that using DES ECB for configuration can lead to information leakage and compromise the confidentiality of sensitive data stored . Upgrading to a more secure encryption mode will significantly enhance the security posture of the application.