{"id":15928,"date":"2020-03-20T21:09:09","date_gmt":"2020-03-20T14:09:09","guid":{"rendered":"https:\/\/blog.tinohost.com\/?p=3288"},"modified":"2025-06-11T16:23:54","modified_gmt":"2025-06-11T09:23:54","slug":"plugin-gutenberg-elementor-templates-importer-for-responsive","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/plugin-gutenberg-elementor-templates-importer-for-responsive\/","title":{"rendered":"X\u1eed l\u00fd l\u1ed7i nghi\u00eam tr\u1ecdng \u0111\u1ebfn t\u1eeb Plugin Gutenberg v\u00e0 Elementor Templates Importer For Responsive"},"content":{"rendered":"<strong>Plugin Gutenberg v\u00e0 Elementor Templates Importer For Responsive c\u00f2n c\u00f3 t\u00ean kh\u00e1c l\u00e0 Responsive Ready Sites Importer. \u0110\u00e2y l\u00e0 m\u1ed9t trong nh\u1eefng Plugin mi\u1ec5n ph\u00ed &#8220;x\u1ecbn x\u00f2&#8221; nh\u1ea5t cho <a href=\"https:\/\/tino.vn\/blog\/wordpress-la-gi\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress<\/a> hi\u1ec7n nay, \u0111\u00e3 xu\u1ea5t hi\u1ec7n l\u1ed7i. \u0110\u00f3 l\u00e0 l\u1ed7i g\u00ec? M\u1ee9c \u0111\u1ed9 nghi\u00eam tr\u1ecdng nh\u01b0 th\u1ebf n\u00e0o v\u00e0 kh\u1eafc ph\u1ee5c ra sao?\u00a0<\/strong>\n<h2 id=\"Plugin_Gutenberg_v\u00e0_Elementor_Templates_Importer_For_Responsive\"><strong>Plugin Gutenberg v\u00e0 Elementor Templates Importer For Responsive<\/strong><\/h2>\n<h3 id=\"Tr\u00ecnh_so\u1ea1n_th\u1ea3o_b\u00e0i_vi\u1ebft_v\u00e0_trang_m\u1edbi_cho_WordPress_&#8211;_Plugin_Gutenberg\"><strong>Tr\u00ecnh so\u1ea1n th\u1ea3o b\u00e0i vi\u1ebft v\u00e0 trang m\u1edbi cho WordPress &#8211; Plugin Gutenberg<\/strong><\/h3>\nTr\u01b0\u1edbc khi c\u00f3 Plugin Gutenberg, nh\u00e2n WordPress ch\u1ec9 h\u1ed7 tr\u1ee3 c\u00e1c b\u00e0i vi\u1ebft \u0111\u01a1n gi\u1ea3n. Mu\u1ed1n vi\u1ebft c\u00e1c layout ph\u1ee9c t\u1ea1p h\u01a1n, ng\u01b0\u1eddi d\u00f9ng ch\u1ec9 c\u00f3 th\u1ec3 k\u1ebft h\u1ee3p v\u1edbi c\u00e1c plugin b\u00ean th\u1ee9 ba v\u00e0 code tu\u1ef3 bi\u1ebfn. Plugin Gutenberg ra \u0111\u1eddi cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng x\u00e2y d\u1ef1ng m\u1ed9t ki\u1ec3u c\u00f3 c\u1ea5u tr\u00fac v\u00e0 tr\u1ef1c quan h\u01a1n.\nM\u1ee5c \u0111\u00edch c\u1ee7a c\u00e1c nh\u00e0 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n n\u00e0y l\u00e0 mu\u1ed1n l\u00e0m cho b\u1ed1 c\u1ee5c ti\u00ean ti\u1ebfn d\u1ec5 ti\u1ebfp c\u1eadn h\u01a1n v\u1edbi ng\u01b0\u1eddi d\u00f9ng WordPress trung b\u00ecnh. C\u00e1i t\u00ean Gutenberg xu\u1ea5t ph\u00e1t t\u1eeb Johannes Gutenberg. \u00d4ng l\u00e0 ng\u01b0\u1eddi \u0111\u00e3 gi\u1edbi thi\u1ec7u m\u00e1y in c\u01a1 kh\u00ed v\u00e0 b\u1eaft \u0111\u1ea7u cu\u1ed9c c\u00e1ch m\u1ea1ng in \u1ea5n \u1edf ch\u00e2u \u00c2u. \u0110i\u1ec3m t\u01b0\u01a1ng \u0111\u1ed3ng gi\u1eefa t\u00ean \u00f4ng v\u00e0 d\u1ef1 \u00e1n l\u00e0 \u0111\u1ec1u &#8220;\u0111\u01a1n gi\u1ea3n h\u00f3a&#8221; \u0111\u1ec3 \u0111\u00f4ng \u0111\u1ea3o ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng.\n<img decoding=\"async\" class=\"size-full wp-image-3291 aligncenter\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-20-at-4.20.48-PM.png\" alt=\"plugin-gutenberg-elementor-templates\" width=\"700\" height=\"331\" title=\"\">\nN\u00f3i c\u00e1ch kh\u00e1c, Gutenberg chuy\u1ec3n \u0111\u1ed5i h\u1ec7 th\u1ed1ng ch\u1ec9nh s\u1eeda n\u1ed9i dung c\u1ed1t l\u00f5i trong WordPress &#8220;th\u00e2n thi\u1ec7n&#8221; v\u1edbi ng\u01b0\u1eddi d\u00f9ng. Kh\u00f4ng c\u1ea7n hi\u1ec3u nhi\u1ec1u v\u1ec1 HTML ho\u1eb7c CSS \u0111\u1ec3 t\u1ea1o 2 blocks n\u1ed9i dung b\u00ean c\u1ea1nh nhau, ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 ti\u1ebfp c\u1eadn v\u1edbi c\u00e1c layouts ph\u1ee9c t\u1ea1p h\u01a1n.\n<h3 id=\"Elementor_Templates_Importer_For_Responsive\"><strong>Elementor Templates Importer For Responsive<\/strong><\/h3>\n\u0110\u00e2y l\u00e0 plugin page builder c\u00f3 t\u1ed1c \u0111\u1ed9 ph\u00e1t tri\u1ec3n ng\u01b0\u1eddi d\u00f9ng nhanh nh\u1ea5t hi\u1ec7n nay. S\u1ef1 ph\u1ed5 bi\u1ebfn n\u00e0y khi\u1ebfn cho r\u1ea5t nhi\u1ec1u plugin b\u00ean th\u1ee9 ba b\u1ed5 sung th\u00eam t\u00ednh n\u0103ng, widget template. B\u1ea1n s\u1ebd tho\u1ea3i m\u00e1i l\u1ef1a ch\u1ecdn templates \u01b0ng \u00fd m\u00e0 l\u1ea1i ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed.\n<img decoding=\"async\" class=\"size-full wp-image-3292 aligncenter\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-20-at-4.24.09-PM.png\" alt=\"plugin-gutenberg-elementor-templates\" width=\"700\" height=\"349\" title=\"\">\nTuy mi\u1ec5n ph\u00ed nh\u01b0ng ng\u01b0\u1eddi d\u00f9ng l\u1ea1i r\u1ea5t h\u00e0i l\u00f2ng v\u1ec1 ch\u1ea5t l\u01b0\u1ee3ng c\u1ee7a plugin n\u00e0y. B\u1ea3n mi\u1ec5n ph\u00ed c\u1ee7a Elementor c\u00f3 r\u1ea5t nhi\u1ec1u t\u00ednh n\u0103ng gi\u00fap ng\u01b0\u1eddi d\u00f9ng ch\u1ee7 \u0111\u1ed9ng thi\u1ebft k\u1ebf \u0111\u1ea7y \u0111\u1ee7 m\u1ed9t landing page c\u01a1 b\u1ea3n \u0111\u1eb9p m\u1eaft.\n<h2 id=\"L\u1ed7i_nghi\u00eam_tr\u1ecdng_\u0111\u1ebfn_t\u1eeb_Plugin_Gutenberg_v\u00e0_Elementor_Templates_Importer_For_Responsive_l\u00e0_g\u00ec?\"><strong>L\u1ed7i nghi\u00eam tr\u1ecdng \u0111\u1ebfn t\u1eeb Plugin Gutenberg v\u00e0 Elementor Templates Importer For Responsive l\u00e0 g\u00ec?<\/strong><\/h2>\nNg\u00e0y 02\/03\/2020, m\u1ed9t s\u1ed1 \u0111i\u1ec3m cu\u1ed1i d\u1ec5 b\u1ecb t\u1ea5n c\u00f4ng trong Gutenberg v\u00e0 Elementor Templates Importer For Responsive \u0111\u00e3 \u0111\u01b0\u1ee3c nh\u00f3m Threat Intelligence ph\u00e1t hi\u1ec7n. \u0110i\u1ec1u nghi\u00eam tr\u1ecdng l\u00e0 c\u00e1c l\u1ed7 h\u1ed5ng n\u00e0y cho ph\u00e9p:\n<ul>\n \t<li>B\u1ea5t k\u1ef3 ng\u01b0\u1eddi d\u00f9ng n\u00e0o c\u0169ng \u0111\u01b0\u1ee3c x\u00e1c th\u1ef1c, k\u1ec3\u00a0c\u1ea3 ng\u01b0\u1eddi d\u00f9ng c\u00f3 quy\u1ec1n c\u1ea5p \u0111\u1ed9 thu\u00ea bao t\u1ed1i thi\u1ec3u.<\/li>\n \t<li>T\u1ea5t c\u1ea3 c\u1ea5p \u0111\u1ed9 \u0111\u1eb7c quy\u1ec1n, kh\u1ea3 n\u0103ng th\u1ef1c thi c\u00e1c h\u00e0nh \u0111\u1ed9ng AJAX kh\u00e1c nhau \u0111\u1ec1u c\u00f3 th\u1ec3 \u0111\u1eb7t l\u1ea1i d\u1eef li\u1ec7u trang web, ti\u00eam JavaScript \u0111\u1ed9c h\u1ea1i v\u00e0o c\u00e1c trang, s\u1eeda \u0111\u1ed5i d\u1eef li\u1ec7u t\u00f9y bi\u1ebfn ch\u1ee7 \u0111\u1ec1, nh\u1eadp t\u1ec7p<strong> .xml<\/strong> v\u00e0<strong> .json<\/strong> v\u00e0 k\u00edch ho\u1ea1t nhi\u1ec1u plugin h\u00e0nh \u0111\u1ed9ng kh\u00e1c.<\/li>\n<\/ul>\nNgay sau khi ph\u00e1t hi\u1ec7n, v\u00e0o ng\u00e0y 03\/03\/2020, nh\u00f3m Threat Intelligence \u0111\u00e3 li\u00ean h\u1ec7 v\u1edbi nh\u00e0 ph\u00e1t tri\u1ec3n Plugin\u00a0 \u0111\u1ec3 b\u00e1o c\u00e1o t\u00ecnh tr\u1ea1ng n\u00e0y. Sau khi ki\u1ec3m tra, nh\u00e0 ph\u00e1t tri\u1ec3n \u0111\u00e3 ph\u00e1t h\u00e0nh c\u00e1c b\u1ea3n v\u00e1 bao g\u1ed3m nonce v\u00e0 ki\u1ec3m tra quy\u1ec1n tr\u00ean g\u1ea7n nh\u01b0 t\u1ea5t c\u1ea3 c\u00e1c \u0111i\u1ec3m cu\u1ed1i AJAX. S\u00e1ng h\u00f4m sau, nh\u00f3m Threat Intelligence g\u1eedi to\u00e0n b\u1ed9 chi ti\u1ebft l\u1ed7 h\u1ed5ng. Ng\u00e0y 12\/03\/2020, b\u1ea3n v\u00e1 l\u1ed7i \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt \u1edf phi\u00ean b\u1ea3n 2.2.7.\nL\u1ed7i n\u00e0y \u0111\u00e3 \u1ea3nh h\u01b0\u1edfng nghi\u00eam tr\u1ecdng \u0111\u1ebfn v\u1ea5n \u0111\u1ec1 b\u1ea3o m\u1eadt. Nh\u1eefng k\u1ebb t\u1ea5n c\u00f4ng chi\u1ebfm l\u0129nh ho\u00e0n to\u00e0n c\u00e1c trang web WordPress c\u1ee7a b\u1ea1n. N\u1ebfu \u0111ang s\u1eed d\u1ee5ng Plugin n\u00e0y, b\u1ea1n h\u00e3y ch\u1ee7 \u0111\u1ed9ng c\u1eadp nh\u1eadt l\u00ean phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t \u0111\u1ec3 v\u00e1 l\u1ed7i.\n<img decoding=\"async\" class=\"size-jnews-featured-750 wp-image-3294 aligncenter\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/03\/download-750x333.png\" alt=\"plugin-gutenberg-elementor-templates\" width=\"750\" height=\"333\" title=\"\">\nTh\u00f4ng tin th\u00eam t\u1eeb WORDFENCE ( Translate )\n<ul>\n \t<li>M\u00f4 t\u1ea3 : C\u00e1c h\u00e0nh \u0111\u1ed9ng AJAX kh\u00f4ng \u0111\u01b0\u1ee3c b\u1ea3o v\u1ec7<\/li>\n \t<li>Plugin b\u1ecb \u1ea3nh h\u01b0\u1edfng: Gutenberg &amp; Elementor Templates Importer For Responsive\nc\u1eafm b\u1ed5 sung Slug: responsive-add-ons<\/li>\n \t<li>Phi\u00ean b\u1ea3n b\u1ecb \u1ea3nh h\u01b0\u1edfng: &lt;= 2.2.5<\/li>\n \t<li>ID CVE: S\u1ebd \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt khi \u0111\u01b0\u1ee3c cung c\u1ea5p \u0111\u1ecbnh danh.<\/li>\n \t<li>CVSS \u0110i\u1ec3m: 9.1 (Quan tr\u1ecdng)<\/li>\n \t<li>Vector CVSS: CVSS: 3.0 \/ AV: N \/ AC: L \/ PR: L \/ UI: N \/ S: C \/ C: L \/ I: H \/ A: L<\/li>\n \t<li>Phi\u00ean b\u1ea3n v\u00e1 ho\u00e0n to\u00e0n: 2.2 .6<\/li>\n<\/ul>\nCh\u1ee9c n\u0103ng nh\u1eadp d\u1ef1a tr\u00ean c\u00e1c h\u00e0nh \u0111\u1ed9ng AJAX kh\u00e1c nhau, v\u1edbi c\u00e1c ch\u1ee9c n\u0103ng kh\u00e1c nhau t\u1eeb vi\u1ec7c \u0111\u1eb7t l\u1ea1i d\u1eef li\u1ec7u trang web tr\u01b0\u1edbc khi nh\u1eadp t\u1ea5t c\u1ea3 c\u00e1c c\u00e1ch \u0111\u1ec3 nh\u1eadp t\u1ec7p .xml v\u00e0 .json \u0111\u1ec3 cung c\u1ea5p d\u1eef li\u1ec7u cho qu\u00e1 tr\u00ecnh nh\u1eadp. Threat Intelligence \u0111\u00e3 ph\u00e1t hi\u1ec7n ra 23 \u0111i\u1ec3m cu\u1ed1i d\u1ec5 b\u1ecb t\u1ea5n c\u00f4ng v\u00e0 ph\u1ea7n l\u1edbn trong s\u1ed1 n\u00e0y \u0111\u01b0\u1ee3c t\u00ecm th\u1ea5y trong t\u1ec7p<strong> \/ class-responsive- yet-sites-importer.php.<\/strong>\n<div><code>\/**<\/code><\/div>\n<div><code>\u00a0* Constructor.<\/code><\/div>\n<div><code>\u00a0*<\/code><\/div>\n<div><code>\u00a0* @since 1.0.0<\/code><\/div>\n<div><code>\u00a0*\/<\/code><\/div>\n<div><code>publicfunction__construct() {<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('init',array($this,'load_importer') );<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0$responsive_ready_sites_importers_dir= plugin_dir_path(__FILE__);<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0require_once$responsive_ready_sites_importers_dir.'class-responsive-ready-sites-importer-log.php';<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0include_once$responsive_ready_sites_importers_dir.'class-responsive-ready-sites-widgets-importer.php';<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0include_once$responsive_ready_sites_importers_dir.'class-responsive-ready-sites-options-importer.php';<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\/\/ Import AJAX.<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-set-site-data-free',array($this,'import_start') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-xml',array($this,'import_xml_data') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-wpforms',array($this,'import_wpforms') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-customizer-settings',array($this,'import_customizer_settings') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-widgets',array($this,'import_widgets') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-options',array($this,'import_options') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-import-end',array($this,'import_end') );<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('responsive_ready_sites_import_complete',array($this,'clear_cache') );<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0include_once$responsive_ready_sites_importers_dir.'batch-processing\/class-responsive-ready-sites-batch-processing.php';<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\/\/ Reset Customizer Data.<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-reset-customizer-data',array($this,'reset_customizer_data') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-reset-site-options',array($this,'reset_site_options') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-reset-widgets-data',array($this,'reset_widgets_data') );<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\/\/ Reset Post &amp; Terms.<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-delete-posts',array($this,'delete_imported_posts') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-delete-wp-forms',array($this,'delete_imported_wp_forms') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0add_action('wp_ajax_responsive-ready-sites-delete-terms',array($this,'delete_imported_terms') );<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0if( version_compare( get_bloginfo('version'),'5.0.0','&gt;=') ) {<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0add_filter('http_request_timeout',array($this,'set_timeout_for_images'), 10, 2 );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0}<\/code><\/div>\n<div><code>}<\/code><\/div>\nS\u1eed d\u1ee5ng import_start h\u00e0m g\u1eafn v\u1edbi <strong>wp_ajax_responsive-ready-sites-import-set-site-data-free<\/strong> h\u00e0nh \u0111\u1ed9ng nh\u01b0 v\u00ed d\u1ee5 b\u00ean d\u01b0\u1edbi.\n<div><code>**<\/code><\/div>\n<div><code>\u00a0* Start Site Import<\/code><\/div>\n<div><code>\u00a0*<\/code><\/div>\n<div><code>\u00a0* @since\u00a0 1.0.0<\/code><\/div>\n<div><code>\u00a0* @return void<\/code><\/div>\n<div><code>\u00a0*\/<\/code><\/div>\n<div><code>publicfunctionimport_start() {<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$demo_api_uri= isset($_POST['api_url'] ) ? esc_url($_POST['api_url'] ) :'';\/\/phpcs:ignore<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0if( !empty($demo_api_uri) ) {<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$demo_data= self::get_responsive_single_demo($demo_api_uri);<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if( !$demo_data['success'] ) {<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0wp_send_json($demo_data);<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0update_option('responsive_ready_sites_import_data',$demo_data);<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if( is_wp_error($demo_data) ) {<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0wp_send_json_error($demo_data-&gt;get_error_message() );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}else{<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0do_action('responsive_ready_sites_import_start',$demo_data,$demo_api_uri);<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0wp_send_json_success($demo_data);<\/code><\/div>\n<div><\/div>\n<div><code>\u00a0\u00a0\u00a0}else{<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0wp_send_json_error( __('Request site API URL is empty. Try again!','responsive-addons') );<\/code><\/div>\n<div><code>\u00a0\u00a0\u00a0}<\/code><\/div>\n<div><\/div>\n<div><code>}<\/code><\/div>\n<div><\/div>\n<div>T\u1ea5t c\u1ea3 c\u00e1c h\u00e0nh \u0111\u1ed9ng d\u1ec5 b\u1ecb t\u1ea5n c\u00f4ng c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c g\u1ecdi v\u1edbi m\u1ed9t y\u00eau c\u1ea7u \u0111\u01a1n gi\u1ea3n \/wp-admin\/admin-ajax.php?action=[Vulnerable-Action]c\u00f9ng v\u1edbi c\u00e1c tham s\u1ed1 th\u00edch h\u1ee3p.<\/div>\n<div>\n<h2 id=\"Bi\u1ec7n_ph\u00e1p_kh\u1eafc_ph\u1ee5c_l\u1ed7i_\u0111\u1ebfn_t\u1eeb_Plugin_Gutenberg_v\u00e0_Elementor_Templates_Importer_For_Responsive\"><strong>Bi\u1ec7n ph\u00e1p kh\u1eafc ph\u1ee5c l\u1ed7i \u0111\u1ebfn t\u1eeb Plugin Gutenberg v\u00e0 Elementor Templates Importer For Responsive<\/strong><\/h2>\n<h3 id=\"Ki\u1ec3m_tra_k\u1ef9_h\u01a1n_c\u00e1c_\u0111i\u1ec3m_cu\u1ed1i\"><strong>Ki\u1ec3m tra k\u1ef9 h\u01a1n c\u00e1c \u0111i\u1ec3m cu\u1ed1i<\/strong><\/h3>\nThao t\u00e1c nh\u01b0 sau:\n<ol>\n \t<li>Trong quy tr\u00ecnh nh\u1eadp, \u0111\u1ec3 cung c\u1ea5p d\u1eef li\u1ec7u, b\u1ea1n n\u00ean th\u1ef1c hi\u1ec7n h\u00e0nh \u0111\u1ed9ng AJAX wp_ajax_responsive-ready-sites-import-xml k\u00edch ho\u1ea1t m\u1ed9t h\u00e0m nh\u1eadp t\u1ec7p XML.<\/li>\n \t<li>Sau \u0111\u00f3, h\u00e0nh \u0111\u1ed9ng AJAX n\u00e0y s\u1ebd k\u00edch ho\u1ea1t ch\u1ee9c n\u0103ng nh\u1eadp t\u1ea5t c\u1ea3 d\u1eef li\u1ec7u t\u1eeb t\u1ec7p XML \u0111\u00e3 nh\u1eadp tr\u01b0\u1edbc \u0111\u00f3.<\/li>\n<\/ol>\nVi\u1ec7c \u00e1p d\u1ee5ng hai h\u00e0nh \u0111\u1ed9ng n\u00e0y song song s\u1ebd cho ph\u00e9p k\u1ebb t\u1ea5n c\u00f4ng nh\u1eadp t\u1ec7p XML ch\u1ee9a c\u00e1c t\u1ea3i tr\u1ecdng \u0111\u1ed9c h\u1ea1i nh\u01b0 c\u00e1c trang m\u1edbi tr\u00ean trang web. C\u00e1c t\u1ea3i tr\u1ecdng \u0111\u1ed9c h\u1ea1i sau \u0111\u00f3 s\u1ebd \u0111\u01b0\u1ee3c th\u1ef1c thi b\u1ea5t c\u1ee9 khi n\u00e0o ng\u01b0\u1eddi d\u00f9ng duy\u1ec7t \u0111\u1ebfn trang m\u1edbi \u0111\u01b0\u1ee3c nh\u1eadp. \bH\u1eadu qu\u1ea3 x\u1ea3y ra l\u00e0 d\u1eabn \u0111\u1ebfn chuy\u1ec3n h\u01b0\u1edbng trang web \u0111\u1ed9c h\u1ea1i v\u00e0 t\u1ea1o ng\u01b0\u1eddi d\u00f9ng qu\u1ea3n tr\u1ecb gi\u1ea3 m\u1ea1o.\n<img decoding=\"async\" class=\"size-full wp-image-3293 aligncenter\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/03\/ii.png\" alt=\"plugin-gutenberg-elementor-templates\" width=\"700\" height=\"327\" title=\"\">\n\u0110\u1ec3 ghi \u0111\u00e8 d\u1eef li\u1ec7u trang web b\u1eb1ng d\u1eef li\u1ec7u \u0111\u1ed9c h\u1ea1i do m\u00ecnh ch\u1ecdn, hacker c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng nh\u1eefng h\u00e0nh \u0111\u1ed9ng AJAX sau:\n<ul>\n \t<li>wp_ajax_responsive-ready-sites-import-options<\/li>\n \t<li>wp_ajax_responsive-ready-sites-import-widgets<\/li>\n \t<li>wp_ajax_responsive-ready-sites-import-customizer-settings<\/li>\n<\/ul>\n<\/div>\n<h3 id=\"L\u01b0u_\u00fd_cho_ch\u1ee7_s\u1edf_h\u1eefu_trang_web_v\u00e0_nh\u00e0_ph\u00e1t_tri\u1ec3n_WordPress\"><strong><span style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">L\u01b0u \u00fd cho ch\u1ee7 s\u1edf h\u1eefu trang web v\u00e0 nh\u00e0 ph\u00e1t tri\u1ec3n WordPress<\/span><\/strong><\/h3>\n<div>\n<strong>Ch\u1ee7 s\u1edf h\u1eefu trang web<\/strong>\nC\u00e1c \u0111i\u1ec3m cu\u1ed1i AJAX d\u1ec5 b\u1ecb t\u1ea5n c\u00f4ng l\u00e0 m\u1ed9t l\u1ed7 h\u1ed5ng r\u1ea5t ph\u1ed5 bi\u1ebfn trong s\u1ed1 c\u00e1c plugin v\u00e0 ch\u1ee7 \u0111\u1ec1 WordPress. N\u1ebfu ch\u1ee9c n\u0103ng &#8220;\u0111\u0103ng k\u00fd ng\u01b0\u1eddi d\u00f9ng&#8221; kh\u00f4ng c\u1ea7n thi\u1ebft cho trang web, b\u1ea1n n\u00ean v\u00f4 hi\u1ec7u h\u00f3a n\u00f3.\nB\u1ea1n c\u0169ng n\u00ean \u0111\u1ea3m b\u1ea3o c\u00e1c plugin v\u00e0 ch\u1ee7 \u0111\u1ec1 c\u1ee7a b\u1ea1n lu\u00f4n c\u1eadp nh\u1eadt m\u1ecdi l\u00fac v\u00ec c\u00e1c l\u1ed7 h\u1ed5ng n\u00e0y th\u01b0\u1eddng \u0111\u01b0\u1ee3c ph\u00e1t hi\u1ec7n v\u00e0 v\u00e1 ngay l\u1eadp t\u1ee9c. T\u01b0\u1eddng l\u1eeda \u1ee9ng d\u1ee5ng Web c\u00f3 th\u1ec3 &#8220;ch\u1eefa ch\u00e1y&#8221; n\u1ebfu b\u1ea3n v\u00e1 kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh nhanh ch\u00f3ng.\n<strong>Nh\u00e0 ph\u00e1t tri\u1ec3n<\/strong>\nKi\u1ec3m tra kh\u1ea3 n\u0103ng v\u00e0 b\u1ea3o v\u1ec7 CSRF tr\u00ean c\u00e1c ch\u1ee9c n\u0103ng \u0111\u01b0\u1ee3c ki\u1ec3m so\u00e1t b\u1edfi c\u00e1c h\u00e0nh \u0111\u1ed9ng AJAX trong plugin v\u00e0 ch\u1ee7 \u0111\u1ec1 l\u00e0 vi\u1ec7c b\u1ea1n kh\u00f4ng n\u00ean b\u1ecf qua. N\u1ebfu kh\u00f4ng \u00e1p d\u1ee5ng c\u00e1c bi\u1ec7n ph\u00e1p b\u1ea3o m\u1eadt th\u00edch h\u1ee3p, ch\u1ec9 c\u1ea7n ng\u01b0\u1eddi d\u00f9ng \u1edf c\u1ea5p \u0111\u1ed9 thu\u00ea bao tr\u1edf l\u00ean c\u00f3 kh\u1ea3 n\u0103ng th\u1ef1c hi\u1ec7n c\u00e1c h\u00e0nh \u0111\u1ed9ng n\u00e0y.\nNg\u01b0\u1eddi d\u00f9ng n\u00ean:\n<ol>\n \t<li>Ki\u1ec3m tra kh\u1ea3 n\u0103ng c\u1ee7a ng\u01b0\u1eddi d\u00f9ng \u0111\u1ed1i v\u1edbi c\u00e1c h\u00e0nh \u0111\u1ed9ng b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng c\u00e1c ch\u1ee9c n\u0103ng nh\u01b0 <strong>current_user_can()<\/strong><\/li>\n \t<li>X\u00e1c minh t\u00ednh h\u1ee3p ph\u00e1p c\u1ee7a ngu\u1ed3n y\u00eau c\u1ea7u \u0111\u1ec3 b\u1ea3o v\u1ec7 ch\u1ed1ng l\u1ea1i CSRF tr\u00ean t\u1ea5t c\u1ea3 c\u00e1c ch\u1ee9c n\u0103ng AJAX qua: <strong>wp_create_nonce()<\/strong>v\u00e0 <strong>wp_verify_nonce()<\/strong><\/li>\n<\/ol>\nL\u00e0 m\u1ed9t nh\u00e0 ph\u00e1t tri\u1ec3n Plugin, b\u1ea1n ph\u1ea3i th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc ph\u00f2ng ng\u1eeba ch\u1ed1ng l\u1ea1i vi\u1ec7c t\u1ea1o ra c\u00e1c l\u1ed7 h\u1ed5ng n\u00e0y. C\u00f2n n\u1ebfu l\u00e0 ch\u1ee7 s\u1edf h\u1eefu trang web, b\u1ea1n c\u0169ng ph\u1ea3i t\u1ef1 b\u1ea3o v\u1ec7 m\u00ecnh tr\u01b0\u1edbc nh\u1eefng ng\u01b0\u1eddi n\u00e0y.\n<h3 id=\"An_to\u00e0n_d\u1eef_li\u1ec7u_c\u00e1_nh\u00e2n\"><strong>An to\u00e0n d\u1eef li\u1ec7u c\u00e1 nh\u00e2n<\/strong><\/h3>\n\u0110\u1ec3 tr\u00e1nh tr\u01b0\u1eddng h\u1ee3p x\u1ea5u nh\u1ea5t, b\u1ea1n n\u00ean ch\u1ee7 \u0111\u1ed9ng truy c\u1eadp website c\u1ee7a m\u00ecnh v\u00e0 ch\u1ee7 \u0111\u1ed9ng t\u1ea1o b\u1ea3n backup sao l\u01b0u <a href=\"https:\/\/tino.vn\/blog\/database-la-gi\/\" target=\"_blank\" rel=\"noopener noreferrer\">d\u1eef li\u1ec7u<\/a>. N\u1ebfu kh\u00f4ng c\u00f3 nhi\u1ec1u ki\u1ebfn th\u1ee9c chuy\u00ean m\u00f4n, b\u1ea1n n\u00ean ch\u1ecdn m\u1ed9t nh\u00e0 cung c\u1ea5p d\u1ecbch v\u1ee5 Hosting \/ VPS uy t\u00edn c\u00f3 h\u1ed7 tr\u1ee3 c\u00e1c b\u1ea3n <a href=\"https:\/\/tino.vn\/blog\/backup-va-restore-la-gi\/\" target=\"_blank\" rel=\"noopener noreferrer\">Backup<\/a>. Vi\u1ec7c backup d\u1eef li\u1ec7u li\u00ean t\u1ee5c trong th\u1eddi gian ng\u1eafn h\u1ea1n \u0111\u1ec3 c\u00f3 th\u1ec3 gi\u1eef website c\u1ee7a m\u00ecnh an to\u00e0n nh\u1ea5t c\u00f3 th\u1ec3 v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 kh\u00f4i ph\u1ee5c l\u1ea1i b\u1ea5t c\u1ee9 l\u00fac n\u00e0o.\nD\u1ecbch v\u1ee5 Backup ng\u1eafn h\u1ea1n c\u1ee7a TinoHost t\u1ef1 tin \u0111\u1ea3m b\u1ea3o sao l\u01b0u d\u1eef li\u1ec7u c\u00e1 nh\u00e2n\u00a0 c\u1ee7a b\u1ea1n t\u1ed1t nh\u1ea5t!\n<\/div>\nM\u1ecdi th\u1eafc m\u1eafc v\u00e0 g\u00f3p \u00fd li\u00ean quan, xin vui l\u00f2ng <a href=\"https:\/\/tinohost.com\/lien-he?aff=447\" target=\"_blank\" rel=\"noopener noreferrer\">li\u00ean h\u1ec7 ngay TinoHost<\/a> \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n chi ti\u1ebft nh\u00e9!\n<h2 id=\"H\u1ed7_tr\u1ee3_24\/7\/365_&#8211;_&#8220;\u0111\u00fang_doanh_nghi\u1ec7p_&#8211;_\u0111\u00fang_d\u1ecbch_v\u1ee5_&#8211;_\u0111\u00fang_kh\u1ea3_n\u0103ng&#8221;\">H\u1ed7 tr\u1ee3 24\/7\/365 &#8211; &#8220;\u0111\u00fang doanh nghi\u1ec7p &#8211; \u0111\u00fang d\u1ecbch v\u1ee5 &#8211; \u0111\u00fang kh\u1ea3 n\u0103ng&#8221;<\/h2>\nV\u1edbi \u0111\u1ed9i ng\u0169 nh\u00e2n vi\u00ean chuy\u00ean m\u00f4n cao, trang thi\u1ebft b\u1ecb t\u1ed1i t\u00e2n c\u00f9ng tinh th\u1ea7n t\u1eadn t\u00e2m <strong>h\u1ed7 tr\u1ee3 24\/7\/365<\/strong>,\u00a0 TinoHost t\u1ef1 tin cung c\u1ea5p <a href=\"https:\/\/tinohost.com\/ten-mien?aff=447\" target=\"_blank\" rel=\"noopener noreferrer\">d\u1ecbch v\u1ee5 t\u00ean mi\u1ec1n<\/a>\u00a0, <a href=\"https:\/\/tinohost.com\/hosting?aff=447\" target=\"_blank\" rel=\"noopener noreferrer\">hosting<\/a> t\u1ed1i \u01b0u v\u00e0 h\u1ec7 th\u1ed1ng <a href=\"https:\/\/tinohost.com\/servers?aff=447\" target=\"_blank\" rel=\"noopener noreferrer\">m\u00e1y ch\u1ee7<\/a> m\u1ea1nh m\u1ebd v\u1edbi chi ph\u00ed t\u1ed1t nh\u1ea5t cho doanh nghi\u1ec7p c\u1ee7a b\u1ea1n.\nCh\u1ec9 c\u1ea7n \u0111\u1ec3 l\u1ea1i th\u00f4ng tin c\u00e1 nh\u00e2n c\u1ee7a b\u1ea1n, chuy\u00ean vi\u00ean t\u01b0 v\u1ea5n c\u1ee7a TinoHost s\u1ebd gi\u00fap b\u1ea1n ch\u1ecdn \u0111\u01b0\u1ee3c gi\u1ea3i ph\u00e1p t\u1ed1t nh\u1ea5t cho t\u00ean mi\u1ec1n v\u00e0 hosting. \u0110\u1eebng \u0111\u1ec3 c\u00f4ng ngh\u1ec7 tr\u1edf th\u00e0nh r\u00e0o c\u1ea3n qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n c\u00f4ng ty b\u1ea1n.\nV\u1edbi b\u1ec1 d\u00e0y kinh nghi\u1ec7m h\u01a1n 5 n\u0103m cung c\u1ea5p hosting, d\u1ecbch v\u1ee5 cho thu\u00ea m\u00e1y ch\u1ee7, c\u00e1c d\u1ecbch v\u1ee5 li\u00ean quan \u0111\u1ebfn t\u00ean mi\u1ec1n v\u00e0 b\u1ea3o m\u1eadt website, h\u00e3y \u0111\u1ec3 <a href=\"https:\/\/tinohost.com\/?aff=447\" target=\"_blank\" rel=\"noopener\">TinoHost<\/a> \u0111\u1ed3ng h\u00e0nh c\u00f9ng b\u1ea1n kh\u1eb3ng \u0111\u1ecbnh th\u01b0\u01a1ng hi\u1ec7u tr\u00ean b\u1ea3n \u0111\u1ed3 c\u00f4ng ngh\u1ec7 to\u00e0n c\u1ea7u!\n\n<ul>\n \t<li><i class=\"fa fa-map-marker\"><\/i>\nV\u0103n ph\u00f2ng \u0111\u1ea1i di\u1ec7n: T\u1ea7ng 31, T\u00f2a L2, Vinhomes Central Park, 720A \u0110i\u1ec7n Bi\u00ean Ph\u1ee7, P.22, Q.B\u00ecnh Th\u1ea1nh, Th\u00e0nh ph\u1ed1 H\u1ed3 Ch\u00ed Minh<\/li>\n \t<li>\n<\/li>\n \t<li><\/li>\n \t<li>Website:\u00a0<a href=\"https:\/\/tinohost.com\/?aff=447\" target=\"_blank\" rel=\"noopener\"><\/a><\/li>\n<\/ul>\n&nbsp;\n<p style=\"text-align: left;\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Plugin Gutenberg v\u00e0 Elementor Templates Importer For Responsive c\u00f2n c\u00f3 t\u00ean kh\u00e1c l\u00e0 Responsive Ready Sites Importer. \u0110\u00e2y l\u00e0 m\u1ed9t trong nh\u1eefng Plugin mi\u1ec5n ph\u00ed &#8220;x\u1ecbn x\u00f2&#8221; nh\u1ea5t cho WordPress hi\u1ec7n nay, \u0111\u00e3 xu\u1ea5t hi\u1ec7n l\u1ed7i. \u0110\u00f3 l\u00e0 l\u1ed7i g\u00ec? M\u1ee9c \u0111\u1ed9 nghi\u00eam tr\u1ecdng nh\u01b0 th\u1ebf n\u00e0o v\u00e0 kh\u1eafc ph\u1ee5c ra sao?\u00a0 Plugin Gutenberg v\u00e0 [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":15929,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7382],"tags":[5559],"class_list":["post-15928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sua-loi-wordpress","tag-plugin-gutenberg-va-elementor-templates-importer-for-responsive"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/15928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=15928"}],"version-history":[{"count":1,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/15928\/revisions"}],"predecessor-version":[{"id":114752,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/15928\/revisions\/114752"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/15929"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=15928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=15928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=15928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}