From 69b98efa35d48d794394df938741fdfc342cfb84 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 27 Aug 2013 02:18:59 +0200 Subject: Re-add CRSF tokens to most package actions We fixed all known CRSF vulnerabilities in commit 2c93f0a (Implement token system to fix CSRF vulnerabilities, 2012-06-23). c349cb2 (Add virtual path support for package actions, 2012-07-17) partly reverted this by injecting a valid CRSF token when virtual paths are in use. This patch allows for keeping the virtual path feature, while reintroducing POST forms and CRSF tokens. Actions like package flagging, votes and notifications are no longer prone to CRSF (see FS#35437 for details). Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/template/pkg_details.php') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index bd549232..0484924f 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -41,6 +41,7 @@ $sources = package_sources($row["ID"]);
  • +
  • @@ -48,6 +49,7 @@ $sources = package_sources($row["ID"]); ($uid == $row["MaintainerUID"] || $atype == "Trusted User" || $atype == "Developer")): ?>
  • +
  • @@ -55,12 +57,14 @@ $sources = package_sources($row["ID"]);
  • +
  • +
  • @@ -68,12 +72,14 @@ $sources = package_sources($row["ID"]);
  • +
  • +
  • -- cgit v1.2.3-24-g4f1b