Project

General

Profile

Actions

Bug #21663

closed

wrong htmlspecialchars on < em > in Extension Manager

Added by Sven Juergens about 15 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-11-24
Due date:
% Done:

0%

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

Description

there is a htmlspecialchars on the html Tag < em > for categories

in class.em_index.php online 769, 830, 905
is set the htmlspecialchars

<strong>'.htmlspecialchars($this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName)).'</strong>

in the function listOrderTitle() line 5862 you find the html tag <em>

switch($listOrder) {
case 'cat':
return isset($this->categories[$key])?$this->categories[$key]:'<em>['.$key.']</em>';
break;
...

this <em> is converted to <em>

see attached File for result

(issue imported from #M12727)


Files

screenshot.jpg (391 KB) screenshot.jpg Administrator Admin, 2009-11-24 12:15
12727-wrong-hsc.patch (3.31 KB) 12727-wrong-hsc.patch Administrator Admin, 2009-11-24 15:10
12727_removing_em.patch (563 Bytes) 12727_removing_em.patch Administrator Admin, 2009-11-26 02:02

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #21695: The new Introduced HSC's of labels arises html-Tags to be visbile in EMClosed2009-11-26

Actions
Has duplicate TYPO3 Core - Bug #21698: Extension category title not properly rendered in backendClosed2009-11-26

Actions
Actions #1

Updated by Sven Juergens about 15 years ago

upps, here is no htmlspecialchars for the text ?

ok, again... there is a htmlspecialchars an the html tag in < e m >

in the function listOrderTitle() the line sould look like this

return isset($this->categories[$key])?$this->categories[$key]:' < e m > ['.$key.'] < / e m > ';

Actions #2

Updated by Georg Ringer about 15 years ago

Hi!

thanks for the bug and digging up the code! want to have a look at my patch? i will bring it to core list in the evening

Actions #3

Updated by Sven Juergens almost 15 years ago

hi georg,
now there is now htmlspecialchars for the other cases on listOrderTitle()

case 'author_company':
return $key;
break;
case 'state':
return $this->states[$key];
break;
case 'type':
return $this->typeDescr[$key];
break;

this could be a possible XSS vulnerability,

Actions #4

Updated by Andreas Beutel almost 15 years ago

I suggest simply removing the emphasis-tags in listOrderTitle() since we already have the brackets as indicator, would be sufficient.

Actions #5

Updated by Francois Suter almost 15 years ago

Committed to trunk in revision 6573

Actions

Also available in: Atom PDF