Fix findings of the full security and bug scan
- Update Symfony to 7.4.24/25 and Twig to 3.31.1 (19 advisories), npm ws - Forms: honeypot no longer named "website" (a field labelled Website silently dropped every submission), reserve technical field names, keep single-line fields on one line - Installer: English installations stored pages under "en" and served 404 - Schedules from before ADR 116 no longer publish the latest draft - Moving a page: refuse reserved addresses, claim the version atomically - Content packages: check close(), require all media, verify extracted bytes, clean up on failure, clear the media mirror after import - Updater: failed copies in public/ and plugins/ abort and roll back public/ - Restore: missing media fail the restore; cms:restore keeps maintenance on - Editor preview honours the page's header and footer choice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4a33090905
commit
33dc413ef6
22 files changed
+659
-246
No files matched your search
@@ -132,6 +132,9 @@ final class SitePackageTest extends TestCase
|
||||
{
|
||||
yield 'fremde Datei' => [static fn (\ZipArchive $zip) => $zip->addFromString('../../public/hallo.php', '<?php'), 'gehört nicht in ein Inhaltspaket'];
|
||||
yield 'Skript als Medium' => [static fn (\ZipArchive $zip) => $zip->addFromString('medien/shell.php', '<?php'), 'gehört nicht in ein Inhaltspaket'];
|
||||
// Ein Paket, dem beim Schreiben die Medien verloren gingen: ohne Prüfung löschte der
|
||||
// Import die Bilder der Zielwebsite und ersetzte sie durch nichts.
|
||||
yield 'fehlende Mediendatei' => [static fn (\ZipArchive $zip) => $zip->deleteName(SitePackage::MEDIA.str_repeat('a', 32).'-480.webp'), 'fehlen Mediendateien'];
|
||||
yield 'veränderter Inhalt' => [static function (\ZipArchive $zip): void {
|
||||
$zip->addFromString(SitePackage::DATA, str_replace('Seite der quelle', 'Untergeschoben', (string) $zip->getFromName(SitePackage::DATA)));
|
||||
}, 'Prüfsumme'];
|
||||
|
||||
Reference in new issue
Block a user