You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that xdp_mkstempat() uses a really poor PRNG. Since the mkstemp() family of functions is used primarily for generating filenames that are extremely difficult for an attacker to collide, I believe this function should be using a significantly stronger RNG, preferably getrandom(2) if new-enough Linux is the target OS, or /dev/urandom if new-enough unix-alike is the target OS.
Thanks
The text was updated successfully, but these errors were encountered:
xdg-desktop-portal/src/xdp-utils.c
Line 69 in d4a92e0
Hello,
I noticed that
xdp_mkstempat()
uses a really poor PRNG. Since themkstemp()
family of functions is used primarily for generating filenames that are extremely difficult for an attacker to collide, I believe this function should be using a significantly stronger RNG, preferablygetrandom(2)
if new-enough Linux is the target OS, or/dev/urandom
if new-enough unix-alike is the target OS.Thanks
The text was updated successfully, but these errors were encountered: