Project

General

Profile

Actions

Bug #3506

closed

Recycler: Possible security issue

Added by Fabien Udriot almost 15 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
-- undefined --
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-05-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I found out that a regular BE user which has no access to the module recycler can have access to URL like this

http://mywebsite/typo3/ajax.php?ajaxID=tx_recycler::controller&startUid=7&cmd=getTables&depth=1&_dc=1243542264808

This is a potential security hole since a BE user could play with the URL and get not allowed information. I suggest to add at the top of file class/controller/class.tx_recycler_controller_ajax.php a simple check:

// Check whether the user has access to the module
global $BE_USER;
$MCONF['name'] = 'web_txrecyclerM1';
$MCONF['access'] = 'user,group';
$BE_USER->modAccess($MCONF, 1);    // This checks makes sure the user has the permissions to access this class. Exits if that's not the case.
Actions

Also available in: Atom PDF