We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c8d3e commit e1c8544Copy full SHA for e1c8544
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Release Notes for Craft CMS 3.x
2
3
+## Unreleased
4
+
5
+- Fixed an RCE vulnerability.
6
7
## 3.9.14 - 2024-12-19 [CRITICAL]
8
9
- Fixed an RCE vulnerability.
src/controllers/AssetsController.php
@@ -1197,6 +1197,9 @@ public function actionGenerateTransform(int $transformId = null): Response
1197
} else {
1198
$assetId = $this->request->getRequiredBodyParam('assetId');
1199
$handle = $this->request->getRequiredBodyParam('handle');
1200
+ if (!is_string($handle)) {
1201
+ throw new BadRequestHttpException('Invalid transform handle.');
1202
+ }
1203
$assetModel = Craft::$app->getAssets()->getAssetById($assetId);
1204
if ($assetModel === null) {
1205
throw new BadRequestHttpException('Invalid asset ID: ' . $assetId);
0 commit comments