Skip to content
Memory corruption Advisory Advanced CVE-2025-48826

Planet WGR-500 formPingCmd format string vulnerability

The formPingCmd function in Planet WGR-500 uses the user-supplied submit-url parameter as the format string in an sprintf call, leading to a format string vulnerability. An attacker can send crafted HTTP requests to trigger memory corruption and potentially achieve arbitrary code execution.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A format string vulnerability exists in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to memory corruption.

Francesco Benvenuto, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The code passes user-controlled input (submit-url) directly as the format string argument to sprintf, allowing format specifiers to be interpreted.

Impact

An attacker could achieve arbitrary code execution, as stated in the report.

What the attacker needed

Access to the web interface; ability to send HTTP requests

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A format string vulnerability happens when user input is passed directly to a function like sprintf that interprets special characters like %s or %n. Here, the submit-url parameter is used as the format string, so an attacker can supply format specifiers to read or write memory, potentially leading to code execution.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.