Git Product home page Git Product logo

-vulner's People

Contributors

zzy1d avatar

Watchers

 avatar

-vulner's Issues

1

PbootCMS 3.0.4 has SQL injection

Vulnerability Type :

SQL Injection

Vulnerability Version :

3.0.4

Recurring environment:

  • Mac OS
  • PHP 5.4.60
  • Apache 2.4.23
  • Mysql 5.7.26

Vulnerability Description AND recurrence:

The default database is sqlite. For testing convenience, we need to replace the default database with the mysql database.
the mysql database directory:
pbootcms\static\backup\sql\0cb2353f8ea80b398754308f15d1121e_20200705235534_pbootcms.sql

image

image

page:
http://xxx/?aboutus/
http://xxx/?article/
http://xxx/?product/
http://xxx/?case/
http://xxx/?job/
http://xxx/?gbook/
http://xxx/?contact/
They all have vulnerabilities, but they all work the same way
I'm just going to use http://xxx/?case/ as an explanation
image
Boolean-based blind SQL injection happened in this page.
The path following case/ is concatenated into the "where" statement causing SQL injection

When the condition is true:
image
image

When the condition is false:
image
image
payload:
Because %20 will be replaced by _ ,So use %0a to bypass it.
For example:
image
image
we can get the admin account name and password
image

Detailed information:
1:
Vulnerability code:/apps/home/controller/IndexController.php
The $qs variable takes the path and inserts the data into the "WHERE" statement simply through the parse_str() method
image
That's why %20 becomes _
For example:
image
2:After obtaining the path data, it is directly passed into the "WHERE" statement to cause SQL injection
image
image
image

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.