Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vuln_apps/orderdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$db = $conn->shop;
$collection = $db->orders;
$search = $_GET['ordersearch'];
$js = "function () { var query = '". $ordersearch . "'; return this.id == query;}";
$js = "function () { var query = '". $search . "'; return this.id == query;}";
//print $js;
print '<br/>';

Expand Down Expand Up @@ -48,4 +48,4 @@
<?php echo $result; ?>
</div>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions vuln_apps/userdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if (isset($_GET['usersearch']) && !empty($_GET['usersearch'])) {
try {
$result = "";
$conn = new MongoClient('mongodb://192.168.87.157');
$conn = new MongoClient('mongodb://127.0.0.1');
$db = $conn->appUserData;
$collection = $db->users;
$search = $_GET['usersearch'];
Expand Down Expand Up @@ -47,4 +47,4 @@
<?php echo $result; ?>
</div>
</body>
</html>
</html>