Commit 969c4b6
committed
Fixed race condition in file path resolution.
Fixed a time-of-check-to-time-of-use race condition in
DcmJSONReader::loadBulkdataFile() that could be used by a malicious
attacker to replace the input directory with a symbolic link pointing
somewhere else, thus causing a file outside the permitted path
to be read.
Thanks to the IN-CYPHER OSS Security Team for the report, detailed
analysis, proof of concept and proposed fix.
This closes DCMTK Bug #1198.1 parent ae94a3d commit 969c4b6
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
1590 | 1595 | | |
1591 | 1596 | | |
1592 | 1597 | | |
| 1598 | + | |
1593 | 1599 | | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1594 | 1615 | | |
1595 | 1616 | | |
1596 | 1617 | | |
| |||
0 commit comments