Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
6.0
-
None
-
-
b9be035c6268ed5359213de8baacbd5e9f4c5f37
Description
When you create a QTemporaryDir, it is always created with 0777 permissions (minus umask), so it's impossible to create a secure directory. Even if you chmod the direrctory right after creation, there's a small window of opportunity for an attacker to open() it or chdir() into it.
Attachments
Issue Links
- relates to
-
QTBUG-79750 Add an optional mode argument to QDir::mkdir(name [, mode]), QFile::open(...)
-
- Closed
-