Description
The AudioField module provides a file field widget and formatter for audio files, with an option to display technical details such as length and codec that it reads by running the external ffprobe tool.
The module builds the ffprobe command by concatenating the real path of the uploaded file into a string that is passed to exec(), and it places that path inside double quotes instead of passing it as a properly escaped argument. Drupal core keeps shell metacharacters in uploaded file names, so a user who can upload to an audio field can give the file a name such as one containing a command substitution, and that embedded command runs as the web server user when the formatter renders the file details.
This vulnerability is mitigated by the fact that it only applies when an administrator has installed ffprobe, set its path on the AudioField settings page, and enabled an ffprobe backed detail (such as Length or Codec) on the field display, none of which are the default.
Solution
Install the latest version.
If you use the AudioField module for Drupal 7, upgrade to AudioField 7.x-1.6:
Reported by
Fixed by
- Tag1 D7ES
Coordinated by
- Tag1 D7ES