Exploit databaseDownload repository ZIP
GH-da9e20e1cb8ee803f3a42563208745c4
abdel-faridh33/agms
Sources for CVE-2023-23488
6 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files38
abdel-faridh33/agmsRevision 12c6bb384c0f
- ↑..Parent directory
- assets/
- css/
- fonts/
- images/
- includes/
- js/
- aboutus.php
- add-art-medium.php
- add-art-product.php
- add-art-type.php
- add-artist.php
- admin-profile.php
- answer-enquiry.php
- change-password.php
- changeimage.php
- changeimage1.php
- changeimage2.php
- changeimage3.php
- changeimage4.php
- changepropic.php
- contactus.php
- dashboard.php
- edit-art-medium-detail.php
- edit-art-product-detail.php
- edit-art-type-detail.php
- edit-artist-detail.php
- forgot-password.php
- login.php
- logout.php
- manage-art-medium.php
- manage-art-product.php
- manage-art-type.php
- manage-artist.php
- reset-password.php
- search.php
- total-enquiry.php
- unanswer-enquiry.php
- view-enquiry-detail.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
admin/changepropic.php
PHP · 6,063 bytes<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['agmsaid']==0)) {
header('location:logout.php');
}
else{
if(isset($_POST['submit']))
{
$imgid=$_GET['imageid'];
$img=$_FILES["images"]["name"];
$extension = substr($img,strlen($img)-4,strlen($img));
// allowed extensions
$allowed_extensions = array(".jpg","jpeg",".png",".gif");
// Validation for allowed extensions .in_array() function searches an array for a specific value.
if(!in_array($extension,$allowed_extensions))
{
echo "<script>alert('Invalid format. Only jpg / jpeg/ png /gif format allowed');</script>";
}
else
{
//r
$propics=md5($img).$extension;
move_uploaded_file($_FILES["images"]["tmp_name"],"images/".$propics);
$query=mysqli_query($con, "update tblartist set Profilepic ='$propics' where ID='$imgid'");
if ($query) {
echo "<script>alert('Artist profile pic has been updated.');</script>";
}
else
{
echo "<script>alert('Something Went Wrong. Please try again.');</script>";
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Update Artist Image | Art Gallery Management System</title>
<!-- Bootstrap CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- bootstrap theme -->
<link href="css/bootstrap-theme.css" rel="stylesheet">
<!--external css-->
<!-- font icon -->
<link href="css/elegant-icons-style.css" rel="stylesheet" />
<link href="css/font-awesome.min.css" rel="stylesheet" />
<link href="css/daterangepicker.css" rel="stylesheet" />
<link href="css/bootstrap-datepicker.css" rel="stylesheet" />
<link href="css/bootstrap-colorpicker.css" rel="stylesheet" />
<!-- date picker -->
<!-- color picker -->
<!-- Custom styles -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style-responsive.css" rel="stylesheet" />
</head>
<body>
<!-- container section start -->
<section id="container" class="">
<!--header start-->
<?php include_once('includes/header.php');?>
<!--header end-->
<!--sidebar start-->
<?php include_once('includes/sidebar.php');?>
<!--sidebar end-->
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<div class="row">
<div class="col-lg-12">
<h3 class="page-header"><i class="fa fa-file-text-o"></i> Update Artist Image</h3>
<ol class="breadcrumb">
<li><i class="fa fa-home"></i><a href="dashboard.php">Home</a></li>
<li><i class="icon_document_alt"></i>CArtist Image</li>
<li><i class="fa fa-file-text-o"></i>Update Artist Image</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading">
Update Artist Image
</header>
<div class="panel-body">
<form class="form-horizontal" enctype="multipart/form-data" method="post" action="">
<?php
$imgid=$_GET['imageid'];
$ret=mysqli_query($con,"select * from tblartist where ID='$imgid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="form-group">
<label class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input class="form-control" id="name" name="name" type="text" required="true" value="<?php echo $row['Name'];?>" readonly='true'>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Image</label>
<div class="col-sm-10">
<img src="images/<?php echo $row['Profilepic'];?>" width="200" height="150" value="<?php echo $row['Profilepic'];?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">New Image</label>
<div class="col-sm-10">
<input class="form-control" id="images" name="images" type="file" required="true" value="">
</div>
</div>
<?php } ?>
<p style="text-align: center;"> <button type="submit" name='submit' class="btn btn-primary">Update</button></p>
</form>
</div>
</section>
</div>
</div>
<!-- Basic Forms & Horizontal Forms-->
<!-- page end-->
</section>
</section>
<?php include_once('includes/footer.php');?>
</section>
<!-- container section end -->
<!-- javascripts -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- nice scroll -->
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/jquery.nicescroll.js" type="text/javascript"></script>
<!-- jquery ui -->
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<!--custom checkbox & radio-->
<script type="text/javascript" src="js/ga.js"></script>
<!--custom switch-->
<script src="js/bootstrap-switch.js"></script>
<!--custom tagsinput-->
<script src="js/jquery.tagsinput.js"></script>
<!-- colorpicker -->
<!-- bootstrap-wysiwyg -->
<script src="js/jquery.hotkeys.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<script src="js/bootstrap-wysiwyg-custom.js"></script>
<script src="js/moment.js"></script>
<script src="js/bootstrap-colorpicker.js"></script>
<script src="js/daterangepicker.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<!-- ck editor -->
<script type="text/javascript" src="assets/ckeditor/ckeditor.js"></script>
<!-- custom form component script for this page-->
<script src="js/form-component.js"></script>
<!-- custome script for all page -->
<script src="js/scripts.js"></script>
</body>
</html>
<?php } ?>