Coder Social home page Coder Social logo

codepathweek7's Introduction

Project 7 - WordPress Pentesting

Time spent: 3 hours spent in total

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

Pentesting Report

  1. (Required) Cross Site Scripting for Theme Template Names Version 4.8
  • Summary: There is a cross site scripting exploitation where template names in certain them files are not sanitized correctly. This allows user input for setting the name to be run and javascript code can be run

    • Vulnerability types: XSS
    • Tested in version: 4.8
    • Fixed in version: 4.8.2
  • GIF Walkthrough: alt text

  • Steps to recreate:

    • Go to the “appearance tab” on the dashboard then click on “editor”
    • From there you can edit certain files where they don’t already have template names
    • For example, if you go to the Twenty Fifteen theme and edit author-bio.php with the following script /* Template Name: <script>confirm(document.cookie);</script> */ you can create a popup.
  • Affected source code:

  1. (Required) Cross Site Scripting in Version 4.8
  • Summary: When creating a post as an admin, you can input code into the post title and have it execute when previewing the post.

    • Vulnerability types: XSS
    • Tested in version: 4.8
    • Fixed in version:
  • GIF Walkthrough: alt text

  • Steps to recreate:

    • Go to dashboard
    • Go to add new post
    • Enter code into the post title
    • Click preview post
  • Affected source code:

  1. (Required) Cross site scripting on post comments in Version 4.8
  • Summary: As an admin you can input code into comments of a post which would run the javascript code.

    • Vulnerability types: XSS
    • Tested in version: 4.8
    • Fixed in version:
  • GIF Walkthrough: alt text

  • Steps to recreate:

    • Go to a post created on the site
    • Add in or other code to the input field
    • After posting the comment when the page is refreshed the code executes
  • Affected source code:

Assets

List any additional assets, such as scripts or files

Resources

GIFs created with LiceCap.

Notes

Some of the challenges experienced during the assignment was trying to get a Github repo when Github was experience database consistency errors. There were also issues with trying to get the right XSS script into the input fields.

License

Copyright [2018] 

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.

codepathweek7's People

Contributors

rahul-tuladhar avatar

Watchers

James Cloos 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.