Giter Site home page Giter Site logo

fantasticlbp / hotels_server Goto Github PK

View Code? Open in Web Editor NEW
293.0 18.0 137.0 9.03 MB

酒店预订系统后台管理系统

PHP 43.68% CSS 25.56% JavaScript 2.29% Hack 28.47%
hotel hotel-management server-management hotel-booking hotel-api apis api-service hotels booking-system api-rest

hotels_server's Issues

XSS Vulnerability in /view/hotelList.php

In /view/hotelList.php

image

As you see, there are not any filtration in all ‘echo’s.

Also in /controller/publishHotel.php , these are inserted into database without filtration

image

After all, we can enjoy XSS

image

image

Hotels_Server through 2018-11-05 has SQL Injection via the API.

In /controller/api/login.php
It will receive a parameter called "telephone" to search for existed users.
But in fact,this parameter just become a part of the SQL request without any process,so it will be possible to have a SQL injection.
We can use SQLMAP to test this vulnerability:
20190215223537
20190215223806
20190215223829

language

How can i translate to english

Hotels_Server Password disclosure

Hotels_Server /view/login.php Enter user name unauthenticated user get password
login.php post data to doAction.php user name unauthenticated user get password
code:
2

2

SQL Injection Vulnerability in controller/fetchpwd.php

In controller/fetchpwd.php
2019-01-19-225422_457x392_scrot

the parameter was added with a string "username=" ,passed to function find

In the definition of function find,we can notice that though the author use PDO, he didn't use Prepared technique to avoid SQL injection vulnerability. What a pity!
2019-01-19-225526_566x228_scrot

After analyzing these codes,we can simply use sqlmap to exploit the vulnerability and have fun!
2019-01-19-231950_878x370_scrot

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.