Code Monkey home page Code Monkey logo

wordpress's Introduction

Project 7 - WordPress Pentesting

Time spent: 14 hours spent in total

Objective: Find, analyze, recreate, and document five vulnerabilities affecting an old version of WordPress

Pentesting Report

  1. User Enumeration
  • Summary: Observed WordPress logon at http://WPDistillery/wp-admin/ allows for users to be enumerated by passing various usernames during login.
    • Vulnerability types: User Enumeration
    • Tested in version: 4.3
    • Fixed in version: Not corrected due to severity disputed by WordPress
  • GIF Walkthrough:
  • Steps to recreate:
    • Navigate to http://WPDistillery.vm/wp-login.php
    • Attempt user enumeration by placing Admin in Username
    • Use any generic password
    • Website responds with "ERROR: The password you entered for the username admin is incorrect. Lost your password?"
  • Affected source code:
  1. Cross Site Scripting Media File
  • Summary:
    • Vulnerability types: Cross Site Scripting (XSS)
    • Tested in version: 4.3
    • Fixed in version: 4.6.1.
  • GIF Walkthrough:
  • Steps to recreate:
    • Initiated an image upload using a .jpg file on http://WPDistillery
    • Appended the XSS to the image title: <img src=a ONERROR=alert('GetOut')>
    • In viewing the image an alert is thrown with the corresponding alert
  • Affected source code:
  1. Cross Site Scripting of Doctor Booking Plugin
  • Summary: Sought to exploit a reported vulnerability located in the Doctor Appointment Booking (DAB) Plugin of WordPress. Vulnerability reported 1 Feb 2018 in packet storm.
    • Vulnerability types: Cross Site Scripting (XSS)
    • Tested in version: WP 4.2 | DAB 1.0
    • Fixed in version: Unresolved
  • GIF Walkthrough:
  • Steps to recreate:
    • Login to http://WPDistillery/wp-admin.php.
    • Select Plugins on the menu and Add New
    • Enter "Doctor" in Search Plugins field and select Install Now
    • Enable the use of the the plugin by selecting Activate
    • Select the Doctor Chamber on the menu and select Patient
    • Click on + Add Patient
      • Enter the java script string under Name: john doejaVasCript:/-//*\\/'/"/**/(/* */oNcliCk=alert(12345) ).
      • Enter the patient's email address and telephone number.
      • Save the record.
    • Select Edit to edit the patient record and when the mouse is selected (onclick) the alert window appears.
  • Affected source code:
  1. SQL Injection of WordPress Events Plugin
  1. SQL Injection of WordPress Jobs Plugin

Assets

No additional assets, such as scripts or files were used during this exercise

Resources

GIFs created with LiceCap.

Notes

Locating plugins that fell under the upload threshold requirements of php.ini was a challenge. Those that exceeded the threshold resulted in an error being returned as follows: The uploaded file exceeds the upload_max_filesize directive in php.ini.

License

Copyright [2018] [S. D. Somavia]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

wordpress's People

Contributors

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