Coder Social home page Coder Social logo

wordpress-vs-kali's Introduction

Project 7 - WordPress Pentesting

Time spent: 16 hours spent in total

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

Pentesting Report

  1. (Required) Authenticated Stored Cross-Site Scripting (XSS) in YouTube URL Embeds
  • Summary: Using the Youtube URL embed shortcode, a XSS attack could be made by inserting a script within a youtube url. This works because although characters such as backslash are filtered out using the HTML sanitzation function wp_kses(), it does not consider escape sequences such as \x3c or \x3c, which correspond to < and >, respectively.
    • Vulnerability types: XSS
    • Tested in version: 4.2.2
    • Fixed in version: 4.2.13
  • GIF Walkthrough: Exploit1
  • Steps to recreate: Log in as a user with atleast contributor permissions. Create a new post, then put in some url embed shortcode with any youtube video link. At the end of the youtube video link, insert the escape code sequence \x3c (<) followed by your xss code, ended with \x3e (>). Then post it and view the post's link.
  • Affected source code:
  1. (Required) Authenticated Shortcode Tags Cross-Site Scripting (XSS)
  • Summary: By abusing unclosed HTML elements used within shortcode tags, a hacker could perform an XSS attack by inserting some script within the tag itself.
    • Vulnerability types: XSS
    • Tested in version: 4.2.2
    • Fixed in version: 4.2.5
  • GIF Walkthrough: Exploit2
  • Steps to recreate: Create a new page or post and add the following to the body: Link[caption width="1" caption='<a href="' ">]</a><a href="http://onMouseOver='alert(1)'">HOVER OVER ME</a>>
  • Affected source code:
  1. (Required) Authenticated Stored Cross-Site Scripting (XSS)
  • Summary:
    • Vulnerability types: XSS
    • Tested in version: 4.2.2
    • Fixed in version: 4.2.3
  • GIF Walkthrough: Exploit3
  • Steps to recreate: Create a new page or post and add the following to the body: <a href="[caption code=">]</a><a title=" onmouseover=alert('test') ">link</a>
  • Affected source code:

Assets

List any additional assets, such as scripts or files

Resources

GIFs created with LiceCap.

Notes

Describe any challenges encountered while doing the work

Trying to find exploits with written out proof of concepts and explanations was hard.

License

Copyright 2017 Kenichi Yamamoto

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-vs-kali's People

Contributors

ykenichi avatar

Watchers

James Cloos avatar  avatar

Forkers

stepht1219

wordpress-vs-kali's Issues

Project Feedback!

Hello Kenichi,

๐Ÿ‘ Nice work! It is important to recognize and to understand how these six common vulnerabilities function. And of course, you should know how to fix the code once you identify the problem!

If you have any particular questions about the assignment or the feedback, email us at [email protected].

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.