S3 File System
The module mixes up the context of different file uploads happening at the same time. Files could be uploaded with the wrong access rights or become corrupted. Someone could read or change data they should not have access to.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youAn attacker can trigger multiple file operations at the same time and the site uses specific private file settings or custom code modifications.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate S3 File System to 8.x-3.12.
For developers: what the fix changed
The fix adds a resetContextOptions method to src/StreamWrapper/S3fsStream.php and calls it after file operations like stream_open, stream_flush, and rename to reset the stream context options.
Also in this release The release also updates the README file with bucket configuration recommendations.
README.txt+62 −0src/StreamWrapper/S3fsStream.php+30 −3 fix