Project: Github Paroxyste/Simply-Blog 20190102

Vulnerability: #9224536 (2019-01-02 06:08:03)

Warning

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

Details:

Sink @FUNCTION::mysqli_query
Risk _GET
/Simply-Blog-master/posts/post.php:122 (show/hide source)
102          </form>
103        </div>
104      </div>
105    </nav>
106  
107    <div class="page-header header-filter clear-filter" style="background-image: url('../assets/img/bg0.jpg');">
108      <div class="container">
109        <div class="row">
110          <div class="col-md-8 ml-auto mr-auto">
111            <div class="brand">
112              <h1>Simply Blog</h1>
113              <h3 class="title">A simple but efficient blogging CMS !</h3>
114            </div>
115          </div>
116        </div>
117      </div>
118    </div>
119  
120    <?php
121      if(isset($_GET["SearchButton"])) {
122 $Search = $_GET["Search"];
123 $ViewQuery = "SELECT * FROM admin_panel WHERE datetime LIKE '%$Search%' 124 OR title LIKE '%$Search%' OR category LIKE '%$Search%' OR post LIKE '%$Search%'";
Threat level 1

Callstack:

@INLINE::/Simply-Blog-master/admin/deletePost.php /Simply-Blog-master/admin/deletePost.php:123 (show/hide source)
103                </button></a>
104              </div>
105              <a class="navbar-brand" href="addPost.php">Delete Post</a>
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 admin_panel WHERE id='$SearchQueryParam'";
123 $Execute = mysqli_query($Connection, $ViewQuery);
124 ?> 125