shell bypass 403

UnknownSec Shell

: /home/bouloter/infix/app/Http/Middleware/ [ drwxr-xr-x ]

name : XSS.php
<?php

namespace App\Http\Middleware;

use Closure;

class XSS
{
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if ($request->method() == 'POST' || $request->method() == 'PUT') {
            $input = $request->except('fingerprint', 'serverMemo', 'updates');
            array_walk_recursive($input, function (&$input) {
                $str = $input;
                $searchVal = array("<script>", "</script>");
                $replaceVal = array(" ", " ");
                $input = str_replace($searchVal, $replaceVal, $str);
            });
            $request->merge($input);
            return $next($request);

        } else {
            $input = $request->except('fingerprint', 'serverMemo', 'updates');
            array_walk_recursive($input, function (&$input) {
                $input = htmlentities($input);
            });
            $request->merge($input);
            return $next($request);
        }


    }
}

© 2025 UnknownSec
afwwrfwafr45458465
Password