History log of /dokuwiki/lib/plugins/popularity/admin.php (Results 1 – 25 of 26)
Revision Date Author Comments
# aabc4782 06-Jun-2026 Andreas Gohr <andi@splitbrain.org>

(security) Add CSRF protection and use Form class in popularity plugin

The plugin is accessible to managers, not just admins, and had two
separate issues.

1. Missing CSRF token (low severity)
Th

(security) Add CSRF protection and use Form class in popularity plugin

The plugin is accessible to managers, not just admins, and had two
separate issues.

1. Missing CSRF token (low severity)
The handler accepted the posted data and toggled autosubmit without
checking a security token. A cross-site forged POST against a logged-in
manager could enable autosubmit and trigger a submission of the wiki's
data to the popularity server.
2. Reflected XSS (low severity)
When a submission failed, the posted data was reflected back into a
readonly textarea without escaping. A value closing the textarea early
(eg. </textarea><script>...) could inject script into the manager's
browser.
To exploit this, not only a CSRF attack against an authenticated
manager was needed, also the connection to the DokuWiki popularity
server needed to fail.

The popularity plugin now verifies the security token before it sends
data or toggles the autosubmit option.

The form is now built via the the Form API so the textarea value is
escaped automatically. The security token is emitted automatically.
The fallback browser-submission form posts to an external server and is
built without the security token.

show more ...


# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# 90fb952c 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: operator spacing


# 8553d24d 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector renames


# 54cc7aa4 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of lib/plugin


# 29fc53cf 08-May-2018 Andreas Gohr <andi@splitbrain.org>

PSR-2 for popularity plugin


# 3dc2d50c 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

visibility declarations in plugins


# b4f2363a 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

remove DOKU_INC checks

There is no need for this check, since these files should not have any
main code that is executed on direct call.

Fixes PSR1.Files.SideEffects.FoundWithSymbols


# ae614416 12-Jul-2015 Anika Henke <anika@selfthinker.org>

changed all input type=submit buttons to button type=submit button for better stylability


# 26e22ab8 15-May-2015 Christopher Smith <chris@jalakai.co.uk>

Changes for PHP 7 Compatibility
- replace PHP4 style class constructor function names (based on
class name) with php 5 __construct()
Also remove some '&' reference operators used with objects
And a

Changes for PHP 7 Compatibility
- replace PHP4 style class constructor function names (based on
class name) with php 5 __construct()
Also remove some '&' reference operators used with objects
And add some object type hints

show more ...


# 79e79377 07-Jan-2015 Andreas Gohr <gohr@cosmocode.de>

Remove error supression for file_exists()

In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PH

Remove error supression for file_exists()

In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PHP 5.3 now, there's no need to supress any error here
anymore. This might even give a minor performance boost.

show more ...


# f119fb20 14-Oct-2013 Gerrit Uitslag <klapinklapin@gmail.com>

get version popularity plugin direct from plugin info


# a1f2b5a3 19-Sep-2013 Gerrit Uitslag <klapinklapin@gmail.com>

Fixed gathering of version of popularity plugin


# 38479cbb 29-Nov-2012 Dominik Eckelmann <deckelmann@gmail.com>

some coding style improvements

- removed some dead/unused code
- fixed phpdoc
- added typing on methods


# f21e024a 08-Sep-2012 Hakan Sandell <sandell.hakan@gmail.com>

Replacing $_REQUEST variables with $INPUT wrapper, popularity plugin


# 24d49498 05-Aug-2012 Anika Henke <anika@selfthinker.org>

added some missing spaces (to popularity and revert plugins)


# a375d5e5 28-May-2011 Guillaume Turri <guillaume.turri@gmail.com>

Fix display in popularity plugin


# 6cd259d7 16-Apr-2011 Anika Henke <anika@selfthinker.org>

closed hidden input in popularity plugin


# 5827ba0b 18-Dec-2010 Guillaume Turri <guillaume.turri@gmail.com>

Popularity plugin displays the last time the data was sent


# 98be6429 09-Dec-2010 Guillaume Turri <guillaume.turri@gmail.com>

Add support for autosubmitting popularity data FS#2025


# da50466b 17-Sep-2010 Andreas Gohr <andi@splitbrain.org>

gather namespace stats in popularity plugin


# c2a6d816 01-Feb-2010 Andreas Gohr <andi@splitbrain.org>

plugin related autoloading

This patch moved the place where DOKU_PLUGIN is defined. It no longer
can be set from a normal config (only via preload)


# f46c9e83 15-Aug-2008 Anika Henke <anika@selfthinker.org>

fixed all remaining links to wiki.splitbrain.org and to restructured pages

darcs-hash:20080815134211-f7d6d-61f4f4fa1c5f62832d7cc5ad3e3a7a78460d2981.gz


# 1bda8618 20-Mar-2008 Andreas Gohr <andi@splitbrain.org>

Make popularity plugin available for managers

darcs-hash:20080320233725-7ad00-2d94f86b9d1b87846409ee286b39fdc16f987eaa.gz


# 0deaa5d8 20-Feb-2008 Andreas Gohr <andi@splitbrain.org>

popularity plugin: record PCRE infos

darcs-hash:20080220213222-7ad00-b573be21ba534bbd1a2d0616112d0d622338eaf8.gz


12