Commit 08e51a3
authored
fix(security) : Fix race condition in file write operations (Symlink TOCTOU) (#1146)
* fix(files): prevent symlink TOCTOU in WriteFiles
* test(files): add symlink TOCTOU protection tests
Add test coverage for symlink attack prevention and path traversal
blocking in WriteFiles operations.
* Remove test additions - only keep security fixes in source1 parent 4eb9dca commit 08e51a3
1 file changed
Lines changed: 33 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
556 | 558 | | |
557 | 559 | | |
558 | | - | |
559 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
560 | 573 | | |
561 | 574 | | |
562 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
563 | 590 | | |
564 | 591 | | |
565 | 592 | | |
| |||
0 commit comments