897
[REF-355]Roberto Paleari, Davide Marrone, Danilo Bruschi and Mattia Monga. "On Race
Vulnerabilities in Web Applications". < http://security.dico.unimi.it/~roberto/pubs/dimva08-web.pdf
>.
[REF-356]"Avoiding Race Conditions and Insecure File Operations". Apple Developer Connection.
< https://web.archive.org/web/20081010155022/http://developer.apple.com/documentation/
Security/Conceptual/SecureCodingGuide/Articles/RaceConditions.html >.2023-04-07.
[REF-357]Johannes Ullrich. "Top 25 Series - Rank 25 - Race Conditions". 2010 March 6.
SANS Software Security Institute. < https://web.archive.org/web/20100530231203/http://
blogs.sans.org:80/appsecstreetfighter/2010/03/26/top-25-series-rank-25-race-conditions/
>.2023-04-07.
[REF-76]Sean Barnum and Michael Gegick. "Least Privilege". 2005 September 4. < https://
web.archive.org/web/20211209014121/https://www.cisa.gov/uscert/bsi/articles/knowledge/
principles/least-privilege >.2023-04-07.
[REF-1237]CERT Coordination Center. "Intel BIOS locking mechanism contains race condition that
enables write protection bypass". 2015 January 5. < https://www.kb.cert.org/vuls/id/766164/ >.
CWE-363: Race Condition Enabling Link Following
Weakness ID : 363
Structure : Simple
Abstraction : Base
Description
The product checks the status of a file or directory before accessing it, which produces a race
condition in which the file can be replaced with a link before the access is performed, causing the
product to access the wrong file.
Extended Description
While developers might expect that there is a very narrow time window between the time of check
and time of use, there is still a race condition. An attacker could cause the product to slow down
(e.g. with memory consumption), causing the time window to become larger. Alternately, in some
situations, the attacker could win the race by performing a large number of attacks.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 367 Time-of-check Time-of-use (TOCTOU) Race Condition 906
CanPrecede 59 Improper Link Resolution Before File Access ('Link
Following')