Blog · Website security

Common website security threats

The attacks that most often hurt a small site are SQL injection, cross-site scripting, password guessing, old plugins, and traffic floods. Each one fails in a different place: the database query, the page output, the login, the update habit, or the network. A certificate stops eavesdropping. It does not stop the other four.
A man in a navy polo tapes a cardboard parcel at a warehouse desk, with a laptop open beside shelves of boxes

How do SQL injection (SQLi) and Cross-Site Scripting (XSS) attacks compromise websites?

SQL injection copies visitor input into a database command, so data can be copied, changed, or deleted. Cross-site scripting prints that input as HTML or script, so another visitor's browser runs it. The session can be misused, or the page can show content you did not write. These are application bugs, not hosting settings.

ThreatWhat people noticeWhat actually limits the damage
SQL injectionStrange database errors, missing rows, or an admin account you did not createQueries that keep input separate from the command, and a database user with only the rights the site needs
Cross-site scriptingUnexpected script, a changed page, or users signed into the wrong sessionOutput encoding, a tight content security policy, and forms that do not accept raw HTML

Do not paste proof-of-concept strings into a site you do not have permission to test. A vulnerability check for your own site is the right starting point, and the fix belongs in the code.

How do automated bots hijack admin accounts through brute-force and credential stuffing?

Brute force tries many passwords against one account, often wp-admin, SSH, or a hosting panel. Credential stuffing tries leaked username and password pairs, betting someone reused them. The bot needs no software bug. A weak or reused password is enough. Lockouts slow guessing. Multi-factor authentication stops a correct password from being the whole login.

  • Use a unique password on the panel, the CMS, and email. Reuse is what makes a leak elsewhere dangerous.
  • Turn on multi-factor authentication wherever the product offers it.
  • Rate-limit or temporarily lock repeated failures. An endless login form is an open queue for bots.
  • Do not publish the panel on the open internet if a VPN or an allow-list can cover the people who administer it.

How do outdated CMS plugins and themes lead to malware backdoors and SEO spam defacement?

An old plugin or theme can ship a known flaw that lets a stranger write files or create an admin user. The site may then gain a hidden backdoor, extra admin accounts, or spam pages aimed at search engines. Updating, or removing the unused extension, closes the flaw. Restore a clean backup if the files are already changed.

  • Remove plugins and themes the site does not use. An inactive extension can still be reachable.
  • Update the CMS, the plugins, and the theme on a schedule, and read what changed when the update is large.
  • Watch for new admin users, unfamiliar files, and pages full of unrelated keywords.
  • Keep a backup from before the change, and test that you can restore it.

The day-to-day list for WordPress is the WordPress security checklist. If the files are already encrypted or replaced and the business cannot publish, read what ransomware does to a website before you pay anyone who wrote to you from the site.

How do volumetric and Layer-7 DDoS attacks take a web server offline?

A volumetric flood fills the link, so real visitors get no reply. A Layer-7 flood looks more like browsing and exhausts PHP workers, the database, or the disk. The site times out either way. A certificate and a host firewall add no bandwidth. Filter the flood before the small server is full.

Kind of floodWhat runs outWhat a small server cannot do alone
VolumetricThe network linkAbsorb more traffic than the port can carry
Application layerWorkers, database connections, or diskTell every expensive URL to do unlimited work

How upstream filtering differs from a plugin is explained in what DDoS protection does. This page does not describe how to generate either kind of flood.

How do server isolation, WAF rules, daily backups, and SSL protect your site from each threat?

Each control covers one failure. Isolation stops one account reading another's files. A WAF can block a known bad request, and an unreviewed rule can also block a real customer. Daily backups restore a clean copy. SSL keeps passwords out of clear text. None of the four fixes database commands built from raw input.

ControlHelps withDoes not replace
Account isolationOne neighbour reading another site's filesA bug inside your own code
WAF rulesSome injection and script patterns at the HTTP layerA proper fix in the query or the template
Daily backupsReturning to a copy from before a defacementFinding how the change got in
SSLHiding the password and the session on the wireA flood, a leaked password, or a bad query

If you want that work done on the account rather than only explained, website security services are the commercial page. Email support@webji.services with the URL and the time you first saw the change.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →