webcomponents / polyfills

Web Components Polyfills
BSD 3-Clause "New" or "Revised" License
1.13k stars 165 forks source link

[Security Vulnerability] - Insecure Randomness for webcomponents-bundle.js #545

Open Reni88 opened 1 year ago

Reni88 commented 1 year ago

Hi,

Good day. Raising this issue of a low security concern that was identified and raised by our security team in a JS component under webcomponents assets (webcomponents-bundle.js) in one of our service.

Findings: Insecure Randomness. Risk: Low Description: The random number generator implemented by Math.random() cannot withstand a cryptographic attack. Impact: Random values are often used as a mechanism to prevent malicious users from guessing a value, such as a password, encryption key, or session identifier. Depending on what this random value is used for, an attacker would be able to predict the next numbers generated, or previously generated values. This will enable the attacker to hijack another user's session, impersonate another user, or crack an encryption key (depending on what the random function was used for).

I hope I have given all necessary details regarding this matter. I am looking forward to hearing from you at your earliest convenience.

Thank you.