Site-urile construite in WordPress sunt expuse la atacuri XSS (Cross Site Scripting).
Folosirea improprie a functiilor
in unele plugin-uri expune site-urile care le folosesc unor brese de securitate la atacuri gen Cross Site Scripting. Acveste functii foarte cunoscute si utilizate in WordPress modifica si adauga siruri de interogare in URL in WordPress .
Functiile amintite nefiind foarte clar documentate, se folosesc cu ideea ca ele aplica escape intrarilor userilor din formulare. Dar nu este asa. Inputul userilor trebuie sa fie supus functiilor de escape: esc_url() (sau esc_url_raw()).
Cele doua functii remove_query_arg si add_query_arg nu efectueaza acest escape pentru noi.
Plugin-urile afectate de aceasta eroare sunt:
- WordPress SEO
- Google Analytics by Yoast
- All In one SEO
- Gravity Forms
- Multiple Plugins from Easy Digital Downloads
- Download Monitor
- Related Posts for WordPress
- My Calendar
- P3 Profiler
- Multiple iThemes products including Builder and Exchange
- Ninja Forms
Ce trebuie facut:
Nu trebuie intrat in panica, dar: trebuie facut update-ul la ultima versiune a fiecarui plugin instalat din aceasta lista.
De pe sucuri.com, avem urmatoarele sfaturi:
Here are some tips and tricks to remember to help reduce your overall threat risk, helping to improve your individual security posture:
- Patch. Keep your sites updated.
- 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.
- Monitor. Monitor your logs. They may give you clues to what is happening on your site.
- Reduce your scope. Only use the plugins (or themes) that your site really needs to function.
- Detect. Prevention may fail, so we recommend scan your site for indicators of compromise or outdated software. Our plugin and Sitecheck can do that for free for you.
- Defense in Depth. If you have an Intrusion Prevention System (IPS) or Web Application Firewall (WAF), they can help block most common forms of XSS exploits. You can even try our own CloudProxy to help you with that. 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.