Monday, February 29, 2016

Security Advisory: XSS Vulnerability Affecting Multiple WordPress Plugins




Multiple WordPress Plugins are vulnerable to Cross-site Scripting (XSS) due to the misuse of the add_query_arg() and remove_query_arg() functions. These are popular functions used by developers to modify and add query strings to URLs within WordPress.

The official WordPress Official Documentation (Codex) for these functions was not very clear and misled many plugin developers to use them in an insecure way. The developers assumed that these functions would escape the user input for them, when it does not. This simple detail, caused many of the most popular plugins to be vulnerable to XSS.

To date, this is the list of affected plugins:

There are probably a few more that we have not listed. If you use WordPress, we highly recommend that you go to your wp-admin dashboard and update any out of date plugins now.

This issue was first identified by Joost from Yoast in one of his plugins (he did a great write up about it as well). We worked together with him to investigate the issue and found that it likely affected a lot more plugins than just that one.

Our research team, along with a few friends (especially Joost from Yoast ) have been going through the WordPress repository for the last few days in an attempt to find and warn as many plugin developers as possible – and to help them patch the issue.
Coordinated Disclosure

This vulnerability was initially discovered last week, due to the varying degrees of severity and more importantly, the large volume of plugins affected, we coordinated a joint security release with all developers involved and the WordPress core security team. It was great team work, and a pleasant experience to see so many developers united and working together for the common good. We can happily say that all plugins have been patched, and as of this morning updates should be available to all users. (yes, everyone pushed their updates in unison 2 hours ago).

If you use WordPress, now it is your turn to update your plugins!

If you have automatic updates enabled, your site should already be patched, especially in the most severe cases.
There Are More Plugins Vulnerable

Our team only analyzed the top 300-400 plugins, far from all of them as you might imagine. So there are likely a number of plugins still vulnerable. If you’re a developer, check your code to see how you are use these two functions:
add_query_arg
remove_query_arg

Make sure you are escaping them before use. We recommend using the esc_url() (or esc_url_raw())functions with them. You should not assume that add_query_arg and remove_query_arg will escape user input. The WordPress team is providing more guidelines on how to use them here.
Update Time!

If you use any of these plugins, make sure to update them now! We will continue to investigate and look for more plugins vulnerable and keep our list here current.

This is also a good time to remind everyone that all software will have bugs and some of those bugs will inevitably lead to security vulnerabilities, such is the life we live in. This applies to plugins, themes, webservers, CMS’s and basically anything that is written by people and based on code. As much as developers try to minimize them and deploy secure coding principles, mistakes will inevitably still happen. We just have to be prepared and find ways to minimize the effect of any vulnerability in your environment; a perfect example of such an approach is what you’re seeing today with this coordinate release.

Here are some tips and tricks to help reduce your overall risk profile and help improve your security posture:

  1. Patch. Keep your sites updated. Always.

  2. Restrict. Restrictive access control.

    • Restrict your wp-admin directory to only white listed IP Addresses. Only give admin access to users that really need it. Do not log in as admin unless you are really doing admin work. These are some examples of restrictive access control policies that can minimize the impact of vulnerabilities in your site.



  3. Monitor. Monitor your logs.

    • They may give you clues to what is happening on your site.



  4. Reduce your scope. Only use the plugins (or themes) that your site really needs to function.

  5. Detect. Prevention may fail, so we recommend scan your site for indicators of compromise or outdated software.


  6. If you like the open source route, you can try OSSEC, Snort and ModSecurity to help you achieve that.


These principles are commonly applied to most secure networks (or on any business that needs to be PCI compliant), but not many website owners think of them for their own site / environment.

These are but a few high level recommendations; we recommend going through our blog for more ideas on how to keep your sites safe and ahead of the threats.





About Daniel Cid
Daniel B. Cid is the Founder & CTO of Sucuri and also the founder of the open source project - OSSEC HIDS. His interests range from intrusion detection, log analysis (log-based intrusion detection), web-based malware research and secure development. You can find more about Daniel on his site dcid.me or on Twitter: @danielcid


Saturday, January 23, 2016

Cara updates secara otomatis wordpress


  1. Klik Plugins

  2. Klik Add New

  3. Ketik di search "easy updates manager"

  4. Klik install di plugins easy updates manager.

  5. Klik Activate.

  6. Klik Plugins, pilih installed plugins

  7. cari easy updates manager, klik configure

  8. di dashboard plugin klik enable pada automatic plugins updates.

  9. masih di dashboard klik enable pada automatic theme updates.

  10. Bila diperlukan dapat mengaktipkan Major Release, tujuannya worpress akan ugprade ke versi mayor diatasnya, misalnya sekarang versi 4.X.X bila terdapat updates versi 5.X.X akan langsung diupdates. Berbeda dengan Minor release hanya untuk sesama versi Minor misalnya wordpress versi 4.1.2 akan upgrade ke versi baru misalnya 4.3.1.



hasil seperti gambar dibawah:



easyupdatemanager



Kekurangan plugins ini:

  • Plugins atau themes yang diupdates kemungkinan terjadi kegagalan dan menyebabkan web error atau blank untuk mengatasi lakukan Full Backup untuk jaga jaga bila terjadi masalah dikemudian hari.

Saturday, January 09, 2016

Installasi SoftEther untuk mengatasi masalah koneksi internet

Solusi berikut dapat mengatasi koneksi internet yang bermasalah ke suatu alamat terntenu.



Download SoftEther di alamat:

http://www.vpngate.net/en/download.aspx

pilih :

Download SoftEther VPN Client + VPN Gate Client Plugin



  1. Jalankan software yang didownload

01



2. Pilih Next

02



3. Pilih Softether VPN Client

03



4. Pilih VPN Gate Public

04

5. Klik Refresh, dan pilih salah satu server yang terdekat misalnya Region Japan atau singapore.
kemudian klik tombol Connect to the VPN Server

05



6. Pilih Use TCP



06

Bila salah satu server tidak dapat terhubung, dapat memilih server lainnya.



7. Koneksi terhubung.

07











Friday, January 01, 2016

Timthumb Security Vulnerability – List of Themes

The Timthumb 0-day security vulnerability is generating a lot of noise and for good reason. If you have a theme that includes TimThumb, your site can be easily hacked.

Because of this, we checked the WordPress Free Themes Directory and aggregated a list of themes that include TimThumb.

If you use any of the following themes please check to see if the script is present, and make sure it is updated:

8q/scripts/timthumb.php
aerial/lib/timthumb.php
aesthete/timthumb.php
albizia/includes/timthumb.php
amphion-lite/script/timthumb.php
aqua-blue/includes/timthumb.php
aranovo/scripts/timthumb.php
arras/library/timthumb.php
arras-theme/library/timthumb.php
arthemix-bronze/scripts/timthumb.php
arthemix-green/scripts/timthumb.php
artisan/includes/timthumb.php
a-simple-business-theme/scripts/timthumb.php
a-supercms/timthumb.php
aureola/scripts/timthumb.php
aurorae/timthumb.php
autofashion/thumb.php
automotive-blog-theme/Quick Cash Auto/timthumb.php
automotive-blog-theme/timthumb.php
bikes/thumb.php
black_eve/timthumb.php
blex/scripts/timthumb.php
bloggnorge-a1/scripts/timthumb.php
blogified/timthumb.php
blue-corporate-hyve-theme/timthumb.php
bluemag/library/timthumb.php
blue-news/scripts/timthumb.php
bombax/includes/timthumb.php
breakingnewz/timthumb.php
brightsky/scripts/timthumb.php
brochure-melbourne/includes/timthumb.php
business-turnkey/assets/js/timthumb.php
calotropis/includes/timthumb.php
coffee-lite/thumb.php
comet/scripts/timthumb.php
conceditor-wp-strict/scripts/timthumb.php
constructor/layouts/thumb.php
constructor/libs/timthumb.php
constructor/timthumb.php
coverht-wp/scripts/timthumb.php
cover-wp/scripts/timthumb.php
dark-dream-media/timthumb.php
deep-blue/timthumb.php
delicate/thumb.php
diamond-ray/thumb.php
dieselclothings/thumb.php
digitalblue/thumb.php
dimenzion/timthumb.php
epione/script/timthumb.php
evr-green/scripts/timthumb.php
famous/megaframe/megapanel/inc/upload.php
famous/timthumb.php
fashion-style/thumb.php
featuring/timthumb.php
fliphoto/timthumb.php
flix/timthumb.php
fordreporter/scripts/thumb.php
freeside/thumb.php
fresh-blu/scripts/timthumb.php
go-green/modules/timthumb.php
granite-lite/scripts/timthumb.php
greydove/timthumb.php
greyzed/functions/efrog/lib/timthumb.php
gunungkidul/thumb.php
heartspotting-beta/thumb.php
heli-1-wordpress-theme/images/timthumb.php
ideatheme/timthumb.php
impressio/timthumb/timthumb.php
introvert/thumb.php
inuit-types/thumb.php
isotherm-news/thumb.php
iwana-v10/timthumb.php
jambo/thumb.php
jcblackone/thumb.php
kratalistic/thumb.php
life-style-free/thumb.php
likehacker/timthumb.php
litepress/scripts/timthumb.php
loganpress-premium-theme-1/thumb.php
magazine-basic/thumb.php
magup/timthumb.php
make-money-online-theme-1/scripts/timthumb.php
make-money-online-theme-2/scripts/timthumb.php
make-money-online-theme-3/scripts/timthumb.php
make-money-online-theme-4/scripts/timthumb.php
make-money-online-theme/scripts/timthumb.php
meintest/layouts/thumb.php
mobilephonecomparision/thumb.php
moi-magazine/timthumb.php
my-heli/images/timthumb.php
mymag/timthumb.php
mystique/extensions/auto-thumb/timthumb.php
nash/theme-assets/php/timthumb.php
neofresh/timthumb.php
neo_wdl/includes/extensions/thumb.php
new-green-natural-living-ngnl/scripts/timthumb.php
newspress/thumb.php
pearlie/scripts/timthumb.php
pico/scripts/timthumb.php
postage-sydney/includes/timthumb.php
premium-violet/thumb.php
probluezine/timthumb.php
pronto/cjl/pronto/uploadify/check.php
pronto/cjl/pronto/uploadify/uploadify.php
r755/thumb.php
regal/timthumb.php
shaan/timthumb.php
shadow-block/thumb.php
shadow/timthumb.php
simple-but-great/timthumb.php
simplenews_premium/scripts/timthumb.php
simple-red-theme/timthumb.php
simple-tabloid/thumb.php
simplewhite/timthumb.php
slidette/timThumb/timthumb.php
snowblind_colbert/thumb.php
snowblind/thumb.php
spotlight/timthumb.php
squeezepage/timthumb.php
standout/thumb.php
suffusion/timthumb.php
swift/includes/thumb.php
swift/includes/timthumb.php
swift/timthumb.php
techozoic-fluid/options/thumb.php
the_dark_os/tools/timthumb.php
themetiger-fashion/thumb.php
theory/thumb.php
the-theme/core/libs/thumbnails/thumb.php
thrillingtheme/thumb.php
tm-theme/js/timthumb.php
totallyred/scripts/timthumb.php
travelogue-theme/scripts/timthumb.php
true-blue-theme/timthumb.php
ttnews-theme/timthumb.php
twittplus/scripts/timthumb.php
typographywp/timthumb.php
ugly/timthumb.php
unity/timthumb.php
versitility/timthumb.php
vibefolio-teaser-10/scripts/timthumb.php
vina/thumb.php
whitemag/script/thumb.php
wpapi/thumb.php
wpbus-d4/includes/timthumb.php
wp-creativix/scripts/timthumb.php
wp-newsmagazine/scripts/timthumb.php
wp-perfect/js/timthumb.php
wp-premium-orange/timthumb.php
xiando-one/thumb.php
zcool-like/timthumb.php
zcool-like/uploadify.php

Caution: This is not a full list of every theme in the directory that may include TimThumb, just a good start. Even if your theme is not found on this list it is a good idea to do a thorough review for the script, and not a bad thought to contact the theme author.

Note: We only listed the free themes found in the WordPress Free Themes Directory SVN, there are probably many more themes that include TimThumb in the premium theme market. Make sure to check with your vendor to ensure the vulnerability has been fixed if they include the script.

Edit: Thanks to @ottodestruct for clarifying that not all of these themes are approved and/or available to the public via the WordPress Free Themes Directory. Although they are currently found in the theme repository, they are not all publicly available for download.



sumber:

https://blog.sucuri.net/2011/08/timthumb-security-vulnerability-list-of-themes-including-it.html

By David Dede on August 3, 2011

Wednesday, December 02, 2015

cara menghapus cache di joomla


  1. Login ke administrator joomla anda.

  2. Klik Site - Maintenance kemudian klik Clear cache

  3. Klik pada pilihan group diselah kiri, secara otomatis akan memilih semua group.

  4. Klik icon Delete



hapusjoomlacache

Thursday, November 26, 2015

greylisting cpanel

Penambahan greylisting Fasilitas baru dari cpanel akan mengurangi masuknya spam ke email anda, cara kerjanya sbb:

1. Email yang dikirimkan server pengirim akan ditolak SEMENTARA oleh server penerima.
2. Server pengirim akan mengirimkan kembali email yang ditolak.

Pada langkah kedua secara umum server akan mengirimkan kembali email yang ditolak dan akan diterima server penerima, namun kebanyakan spammer tidak mengirimkan kembali email yang ditolak

dapat disimpulkan:

1. greylisting cukup ampuh menolak email spam.
2. Email masuk menjadi lambat

Cara menonaktipkan greylisting (tidak disarankan):

1. login ke cpanel
2. Klik greylisting yang ada di group mail.
3. Klik off pada domain yang akan dinonaktipkan.

catatan:
Bermacam cara dilakukan untuk mengatasi spam, namun spam semakin pintar dari antispam dengan merubah cara mengirimkan spam.. tidak semua cara mampu mengatasi spam sampai 100%

Bila anda selalu menerima email dengan nama domain tertentu rekanan anda (bukan email umum spt yahoo,gmail, hotmail) dan ditolak oleh greylisting antispam dari cpanel dapat menghubungi support untuk melakukan bypass server pengirim dengan menyebutkan IP address server pengirim.

Thursday, November 19, 2015

Cara Konfigurasi anti-spam di wordpress

Dari berbagai macam anti spam yang ada di wordpress, anti spam dari webvitaly yang diinstall ini sangat manjur dibandingkan anti spam yang menggunakan input berupa captcha artinya pengunjung tidak diribetkan lagi memasukan kode tiap kali mengirimkan comment atau form lainnya. Selama menggunakan anti-spam dari webvitaly hampir tidak pernah ada spam yang masuk ke wordpress, sangat disarankan pakai anti spam ini.
Plugins anti spam lain yang sudah terinstall sebaiknya dihapus atau disable agar tidak konflik dengan plugins ini.



[caption id="attachment_1234" align="alignnone" width="133"]logo anti-spam-webvitaly logo anti-spam-webvitaly[/caption]

Installasi Anti-spam dari webvitaly

  • Klik Plugins

  • Klik Add New

  • Ketik di search “Anti-Spam“

  • Klik install hanya di plugins Anti-Spam dari webvitaly

  • Klik Activate.





Wednesday, October 07, 2015

Cara mengganti themes/template wordpress dari phpmyadmin

Langkah penggantian themes/templates wordpress menggunakan phpmyadmin di cpanel.

  1. login ke cpanel anda

  2. klik icon phpmyadmin

  3. Klik nama database wordpress anda, letaknya di frame sebelah kiri

  4. Klik kotak SQL, letaknya di tabs bagian atas.

  5. Masukan kode dibawah

    update wp_options set option_value='nama_themes' where option_name='stylesheet';
    update wp_options set option_value='nama_themes' where option_name='template';


    nama tables wp_options agar disesuaikan dengan tables yang anda miliki, dapat dilihat di frame sebelah kiri phpmyadmin.
    nama_themes disesuikan dengan nama themes/templates yang akan digunakan untuk mengganti, Pastikan themes sudah diupload ke server dan perhatikan namanya themes nya.

  6. Klik Go

Thursday, September 24, 2015

Konfigurasi DNS record untuk Office 365 di cPanel hosting

Konfigurasi di cpanel kami anggap sudah mendapatkan kode verifikasi dan bisa melakukan verifikasi di office 365.

Konfigurasi DNS record untuk Office 365 di cPanel hosting secara lengkap dapat  diperhatikan daftar berikut:



namadomainku.com. 300 MX 0 namadomainku.com.mail.protection.outlook.com.
namadomainku.com. 3600 TXT MS=ms123456
autodiscover 3600 CNAME autodiscover.outlook.com.
namadomainku.com. 3600 TXT "v=spf1 include:spf.protection.outlook.com ~all"
_sip._tls 3600 SRV 100 1 443 sipdir.online.lync.com.
_sipfederationtls._tcp 3600 SRV 100 1 5061 sipfed.online.lync.com.
sip 3600 CNAME sipdir.online.lync.com.
lyncdiscover 3600 CNAME webdir.online.lync.com




namadomainku.com hanya sebagai contoh, ganti dengan nama domain yang anda miliki.

Terdapat 4 konfigurasi yang perlu diperhatikan.

  1. MX record

  2. TXT record

  3. CNAME record

  4. SRV record





Kita mulai konfigurasikan satu persatu:



1.MX record

kode:

namadomainku.com. 300 MX 0 namadomainku.com.mail.protection.outlook.com.



langkah di cpanel:

- Klik icon MX Entry di group mail.

- Hapus semua konfigurasi yang ada di kotak mx record

- Tambahkan di kotak Add a New Record sbb:

Priority isi dengan 0 , Destination isi dengan namadomainku.com.mail.protection.outlook.com

Klik tombol Add New record



- pada Kotak Email routing pilih Remote mail exchanger



2. TXT record

Kode:

namadomainku.com. 3600 TXT MS=ms123456
namadomainku.com. 3600 TXT "v=spf1 include:spf.protection.outlook.com ~all"


Langkah di cpanel:

Klik Advance DNS editor, Cari kotak Add a Record, dan Masukan satu persatu:

Name    : namadomainku.com
TTL     : 3600
Type     : TXT
TXT Data: MS=ms123456

ms123456 ganti dengan kode yang didapatkan dari websites office 365

Name    : namadomainku.com
TTL     : 3600
Type     : TXT
TXT Data : v=spf1 include:spf.protection.outlook.com ~all





3. CNAME

Kode:

autodiscover 3600 CNAME autodiscover.outlook.com.
sip 3600 CNAME sipdir.online.lync.com.
lyncdiscover 3600 CNAME webdir.online.lync.com




Langkah di menu advance dns editor di cpanel, tambahkan semua kode dibawah:

Name    : autodiscover
TTL     : 3600
Type     : CNAME
CNAME : autodiscover.outlook.com



Name    : sip
TTL     : 3600
Type     : CNAME
CNAME: sipbdir.online.lync.com



Name    : lyncdiscover
TTL     : 3600
Type     : CNAME
CNAME: webdir.online.lync.com



Name    : msoid
TTL     : 3600
Type     : CNAME
CNAME: clientconfig.microsoftonline-p.net



4. SRV

kode:

_sip._tls 3600 SRV 100 1 443 sipdir.online.lync.com.
_sipfederationtls._tcp 3600 SRV 100 1 5061 sipfed.online.lync.com.


langkah di menu advance dns editor cpanel:

Name    : _sip._tls
TTL     : 3600
Type     : SRV
Priority: 100
Wight: 1
Port: 443
Target: sipdir.online.lync.com



Name    : _sipfederationtls._tcp
TTL     : 3600
Type     : SRV
Priority: 100
Wight: 1
Port: 5061
Target: sipfed.online.lync.com



Setelah langkah ini lakukan verifikasi di office 365

klik disini cara mendapatkan kode verifikasi office 365

Monday, September 07, 2015

cara disable file error_log di cpanel

file error_log di cpanel sering ukurannya bertambah banyak, ini disebakan kode php yang ditulis mengalami kesalahan. agar file error_log tidak terbentuk dapat ditambahkan kode log_errors=off di file php.ini.



  1. Login ke cpanel

  2. Klik file manager

  3. Klik atau masuk ke folder public_html

  4. Cari file php.ini dan edit. Bila file ini tidak ada dapat dibuatkan file baru dari tombol +file

  5. Masukan kode dibawah di file php.ini dan simpan.

     log_errors = Off

File php.ini dapat diupload ke folder lainnya yang sering terbentuk file error_log

Cara upload dengan git tanpa menyertakan folder tertentu

  Untuk mengupload kode menggunakan Git tanpa menyertakan folder tertentu, Anda perlu menggunakan file khusus bernama .gitignore . File ini...