Skip to content

robly78746/wordpresspentest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wordpresspentest

Project 7 - WordPress Pentesting

Time spent: 2 hours spent in total

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

Pentesting Report

  1. (Required) WordPress <= 4.2.2 - Authenticated Stored Cross-Site Scripting (XSS)
  • Summary: A stored XSS vulnerability allows users with posting priveleges to insert specially formatted HTML containing JavaScript for viewers' browsers to run.
    • Vulnerability types: Stored XSS
    • Tested in version: 4.2.2
    • Fixed in version: 4.2.3
  • GIF Walkthrough:

Video Walkthrough

- [X] Steps to recreate: 1. Log on account with posting capabilities 2. Add new post 3. In HTML text mode, paste this string: ]link 4. Wordpress shortcode will change this and display the following: link - [X] Affected source code: - [Link 1](https://core.trac.wordpress.org/changeset/33359) 1. (Required) WordPress 4.2-4.5.1 - MediaElement.js Reflected Cross-Site Scripting (XSS) - [X] Summary: Reflected XSS caused by insecure URL sanitization in the file flashmediaelement.swf. - Vulnerability types: Reflected XSS - Tested in version: 4.2.2 - Fixed in version: 4.5.2 - [X] GIF Walkthrough:

Video Walkthrough

- [X] Steps to recreate: 1. Enable flash in Chrome 2. Navigate to this url, replacing [domain] with a valid domain name: https://[domain].com/wp-includes/js/mediaelement/flashmediaelement.swf?jsinitfunctio%gn=alert`1` - [X] Affected source code: - [Link 1](https://github.com/WordPress/WordPress/commit/a493dc0ab5819c8b831173185f1334b7c3e02e36) 1. (Required) WordPress 4.0-4.7.2 - Authenticated Stored Cross-Site Scripting (XSS) in YouTube URL Embeds - [X] Summary: - Vulnerability types: Stored XSS - Tested in version: 4.2.2 - Fixed in version: 4.7.3 - [X] GIF Walkthrough:

Video Walkthrough

- [X] Steps to recreate: 1. Log on account with posting capabilities 2. Add new post 3. In HTML text mode, paste this string: [embed src='https://www.youtube.com/embed/12345\x3csvg onload=alert(document.cookie)\x3e'][/embed] - [X] Affected source code: - [Link 1](https://github.com/WordPress/WordPress/commit/419c8d97ce8df7d5004ee0b566bc5e095f0a6ca8) 1. (Optional) Vulnerability Name or ID - [ ] Summary: - Vulnerability types: - Tested in version: - Fixed in version: - [ ] GIF Walkthrough: - [ ] Steps to recreate: - [ ] Affected source code: - [Link 1](https://core.trac.wordpress.org/browser/tags/version/src/source_file.php) 1. (Optional) Vulnerability Name or ID - [ ] Summary: - Vulnerability types: - Tested in version: - Fixed in version: - [ ] GIF Walkthrough: - [ ] Steps to recreate: - [ ] Affected source code: - [Link 1](https://core.trac.wordpress.org/browser/tags/version/src/source_file.php)

Assets

List any additional assets, such as scripts or files

Resources

GIFs created with LiceCap.

Notes

Describe any challenges encountered while doing the work

License

Copyright [yyyy] [name of copyright owner]

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published