Why a Website With HTTPS Can Still Be Attacked
HTTPS encrypts traffic between a visitor and a server, but attackers have many other routes. Learn what the padlock covers, what it misses and how to close the gaps.
10 min readUpdated Nov 20, 2026By XPASS Editorial Team

The little padlock in the address bar has taught millions of people to relax. When it appears, many visitors assume the site is safe, and many owners assume the same about their own site once the certificate is installed. That assumption is understandable, because the padlock is the most visible security signal on the web. It is also incomplete. HTTPS answers one specific question: is the data travelling between the browser and the server protected from being read or changed along the way, and is the browser talking to the holder of the certificate for this name? It says nothing about whether the site itself is well built, honestly run or without flaws.
This article explains what HTTPS covers, then walks through the main ways attackers still reach sites and visitors that use it. For each, you will see what the weakness is and what to do about it. If you are choosing certificates for several names, the guide to choosing SSL for a multi-domain website is a useful follow-up, and the comparison of TLS 1.2 and TLS 1.3 covers the protocol side in more depth.
What the padlock actually promises
HTTPS is HTTP carried over TLS. TLS provides three properties when it is set up correctly. Confidentiality means that someone observing the network cannot read the content. Integrity means that data cannot be altered in transit without detection. Authentication means the server proves it holds the private key for a certificate issued for the name you asked for. The current protocol version is described in RFC 8446, and the meaning of requests and responses carried inside it comes from HTTP semantics in RFC 9110.
Three things are not promised. The certificate does not vouch for the intentions of the site owner, because public authorities issue certificates after checking control of the domain, and for higher levels some organisation details, not after judging whether the site is honest. The certificate does not protect the server from being compromised, because the encryption ends where the server decrypts the request, and anything wrong inside the application is still wrong. And the certificate does not protect the visitor's own device, because malware on a phone or laptop sees the page after it has been decrypted.

Attack routes that bypass the padlock
| Route | What happens | Does HTTPS stop it? |
|---|---|---|
| Phishing and lookalike domains | A fake site on a similar name presents its own valid certificate | No |
| Weak or stolen credentials | Attackers sign in with guessed, reused or leaked passwords | No |
| Vulnerable software | Outdated CMS, plugins or libraries are exploited | No |
| Injection flaws | Malicious input reaches the database or the page, for example SQL injection or cross-site scripting | No |
| Malware on the visitor's device | Software on the device reads or changes the page after decryption | No |
| Mixed content and third-party scripts | Insecure or compromised resources load inside a secure page | Partly; browsers block some, not all |
| Misconfigured server or old protocols | Weak settings undermine the connection | Only if configured well |
| Denial of service | Traffic floods exhaust the server | No |
The sections below take the most important ones in turn.
Phishing and lookalike domains
Anyone can register a domain such as examp1e-support.com and obtain a certificate for it, because certificate authorities verify control of the domain, not the intention behind it. A phishing page can therefore show a padlock, a convincing layout and a login form. The visitor sees a secure connection and enters a password, which travels securely to the attacker.
What helps: check the exact spelling of the address before you sign in, especially after clicking a link in an email or message; prefer bookmarks or typing the address for banking and work accounts; and use a password manager, which will not offer saved logins on a domain that does not match. For site owners, registering obvious misspellings of your own brand, publishing a clear sign-in address and enabling email authentication make impersonation harder.
Weak, reused and stolen passwords
Credential attacks target the sign-in form, which works fine over HTTPS. An attacker can try common passwords against many accounts, or reuse passwords leaked from another service. The encrypted connection simply carries those attempts to your server.
What helps: require long, unique passwords; offer or require two-step sign-in, especially for administrators; limit the number of failed sign-in attempts and add delays; avoid shared admin accounts; and remove accounts of people who have left. For users, a password manager and a different password for each service remove most of the risk from leaks elsewhere.
Outdated software and plugins
Content management systems, plugins, themes and libraries receive security fixes for known flaws. Attackers scan the internet for sites that still run vulnerable versions, and HTTPS does nothing to prevent exploitation, because the malicious request arrives through the same encrypted channel as a normal one.
What helps: keep the core system, plugins, themes and server software updated; remove what you do not use; subscribe to security notices from your platform; and test updates on a staging copy before applying them to a live site where possible. A site that has not been updated for a year is a common starting point for compromise.
Injection and application flaws
Applications that insert user input into database queries or pages without proper handling can be tricked into running attacker-supplied commands or scripts. Examples include SQL injection, where input changes the meaning of a database query, and cross-site scripting, where a script placed in a comment or a field runs in other visitors' browsers. These flaws live in the code, and HTTPS has no way to see them.
What helps: use frameworks and libraries that handle parameters safely; validate and escape input and output; set a Content Security Policy to limit which scripts the browser will run; and review code or use security scanners for common weaknesses. Security headers can narrow the damage when a flaw slips through.
Mixed content and third-party scripts
An HTTPS page can load images, scripts and fonts from other places. If one of those resources is fetched over plain HTTP, an attacker on the network could alter it, and a modified script can take over the page. Browsers block the most dangerous kinds of mixed content and warn about others, but the safest approach is to load everything over HTTPS.
A related risk is the third-party script that is itself compromised. If your page loads an analytics, chat or advertising script from another company, a problem on that company's side reaches your visitors through your page. What helps: keep third-party scripts to a minimum, load them only from sources you trust, review them occasionally and consider subresource integrity where it suits your setup.
A plain example
A small online shop installs a valid certificate and sees the padlock. Three weeks later a customer complains about a strange payment page. The investigation shows that an old plugin on the shop had a known flaw. An attacker used it to insert a script into the checkout page. The page was served over HTTPS exactly as designed, and the script ran in every customer's browser. The padlock was truthful, because the connection was encrypted; it simply could not detect the malicious code placed on the server itself. The fix was to update the plugin, remove the injected script, change administrator passwords, enable two-step sign-in and add a content security policy. This case shows that the certificate and the application are separate responsibilities.
Server configuration and old protocols
TLS only protects as well as it is configured. Old protocol versions, weak cipher choices, missing certificate chains and expired certificates all reduce protection or cause errors. A server that still allows very old protocol versions may expose visitors to known weaknesses. Modern TLS versions removed many risky options, which is one reason to prefer them; the article on TLS 1.2 versus TLS 1.3 explains the differences.
What helps: enable current protocol versions, disable obsolete ones, keep the certificate chain complete, redirect HTTP to HTTPS and consider HTTP Strict Transport Security once you are confident everything works over HTTPS. Then test your configuration with an online TLS checker and repeat the test after major server changes.
Attacks aimed at availability and at people
Some attacks do not need to break encryption at all. Denial-of-service floods try to exhaust a server's capacity so that real visitors cannot get through, and encryption does not prevent that. Social engineering convinces staff to reveal a password or approve a fraudulent request, and no certificate can stop an employee from being tricked. Insider mistakes, such as exposing a database backup in a public folder or committing secrets to a code repository, bypass every network control.
What helps: use a hosting setup that can absorb traffic spikes; train staff to recognise phishing and to confirm unusual payment or access requests through a second channel; keep backups off the public web; and limit who can reach sensitive data.
A practical checklist for site owners
- Install a valid certificate that covers every hostname you use, and renew it on time.
- Redirect HTTP to HTTPS and remove mixed content. See how SSL affects SEO for migration steps that avoid traffic loss.
- Update everything. Core system, plugins, themes, libraries and server software.
- Strengthen sign-in. Unique passwords, two-step verification and limited admin accounts.
- Reduce exposure. Remove unused plugins and accounts, and restrict admin pages where possible.
- Set security headers such as a Content Security Policy and HTTP Strict Transport Security, and test them.
- Back up regularly, store copies away from the web server and practise restoring them.
- Monitor logs and alerts, and know who responds to an incident.
- Educate staff and customers about phishing and about checking addresses.
Limits and what to watch for
- Do not oversell the padlock to customers. Telling visitors your site is "secure" because it has HTTPS can mislead them. Say what it does: it encrypts the connection.
- A certificate is not a security audit. No certificate type, from domain validation to extended validation, checks your code or your server's health.
- Layers need owners. Each item in the checklist should have a person responsible and a date for review.
- Security is ongoing. New flaws are discovered all the time, so a site that is fine today needs continuing updates.
- Be honest about what you do not know. If you handle payments or personal data, consider a professional review of your setup rather than relying on a checklist alone.
Summary
HTTPS is essential, and a site without it is plainly behind the standard. But it protects one thing, the connection between the browser and the server, and it leaves many other routes open: phishing on lookalike domains, stolen passwords, outdated software, injection flaws, compromised third-party scripts, misconfigured servers and attacks on people. Treat the certificate as the first layer, then add updates, strong sign-in, safe code, careful configuration, backups and monitoring. Visitors should also check the address, not just the padlock.
When you are ready to put the first layer in place for your own domains, the SSL page shows the certificate options currently available.
Frequently asked questions
If a site has the padlock, is it safe to enter my card number?
The padlock means your connection to the site is encrypted and the certificate matches the name. It does not prove that the owner is trustworthy. Check that the address is spelled correctly, that you reached it from a source you trust, and that the site looks and behaves as expected.
Can a phishing site have HTTPS?
Yes. Anyone who controls a domain can usually obtain a domain-validated certificate for it, so lookalike phishing sites often display the padlock. The certificate proves encryption to that domain, not good intentions.
What attacks does HTTPS protect against?
It protects against eavesdropping and tampering on the network path between the browser and the server, and it lets the browser verify it is talking to the holder of the certificate for that name.
What can a site owner do besides installing a certificate?
Keep software and plugins updated, use strong and unique passwords with two-step sign-in, limit admin access, validate input, set security headers, back up regularly and monitor logs. The certificate is one layer among several.
Does a more expensive certificate make a site safer?
Not in terms of protection against these attacks. A higher validation level shows more verified information about the organisation, but it does not fix vulnerable code or weak passwords.
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need an SSL certificate?
Pick the certificate type that fits your site and see the price before you check out.
SSL from $14.99
See SSL certificatesKeep reading

SSL Guides
How to Choose SSL for a Website With Multiple Domains
Several domains and subdomains can share one certificate or use many. Learn how to compare wildcard, SAN and separate certificates and pick a setup you can maintain.
10 min read

SSL Guides
TLS 1.2 vs TLS 1.3: What Actually Changes for Your Website
TLS 1.3 is faster to set up and removes old, risky options, while TLS 1.2 is still common. Learn the real differences and how to check your own site.
9 min read

SSL Guides
How Much Does SSL Really Affect SEO?
HTTPS is a light ranking signal and a strong trust and usability factor. Learn what SSL changes for search, what it does not, and how to migrate safely.
9 min read