Project: Github Paroxyste/Simply-Blog 20190102

Vulnerability: #9224540 (2019-01-02 06:08:04)

Warning

There are many false positives, or unexploitable vulnerabilities. Please create working "PoC" exploit before reporting anything to vendor!

Details:

Sink PHP::echo
Risk _GET
/Simply-Blog-master/admin/editPost.php:18 (show/hide source)
1  <?php
2  
3  require_once("../includes/database.php");
4  require_once("../includes/sessions.php");
5  require_once("../includes/functions.php");
6  
7  $Admin = "Laurent Echeverria";
8  
9  if(isset($_POST["submit"])) {
10  	$Title = mysqli_real_escape_string($Connection, $_POST["Title"]);
11  	$Category = mysqli_real_escape_string($Connection, $_POST["Category"]);
12    $Post = mysqli_real_escape_string($Connection, $_POST["Post"]);
13  	$CurrentTime = time();
14  	$DateTime = date('d M Y', $CurrentTime);
15  	$DateTime;
16  	$Image = $_FILES["Image"]["name"];
17  	$Target = "../assets/img/uploads/" . basename($_FILES["Image"]["name"]);
18 $SearchQueryParam = $_GET["edit"];
19 20 if(empty($Title) || empty($Category) || empty($Image) || empty($Post)) {
Threat level 2

Callstack:

@INLINE::/Simply-Blog-master/admin/deleteCategories.php /Simply-Blog-master/admin/deleteCategories.php:126 (show/hide source)
106            </div>
107  
108            <button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
109              <span class="sr-only">Toggle navigation</span>
110              <span class="navbar-toggler-icon icon-bar"></span>
111              <span class="navbar-toggler-icon icon-bar"></span>
112              <span class="navbar-toggler-icon icon-bar"></span>
113            </button>
114          </div>
115        </nav>
116  
117        <div class="content">
118          <div class="container-fluid">
119  
120            <?php
121              $SearchQueryParam = $_GET["delete"];
122              $ViewQuery = "SELECT * FROM category WHERE id='$SearchQueryParam'";
123              $Execute = mysqli_query($Connection, $ViewQuery);
124            ?>
125  
126 <form action="deleteCategories.php?delete=<?php echo $SearchQueryParam; ?>" method="post">
127 <div class="row"> 128 <div class="col-md-10 offset-md-1">