Skip to content
Back to Blog
Web Apps & E-commerce5 min read India

Web App Security Basics Every Business Owner Should Ask About

In short

You don't need to be a developer to ask the right security questions. The essentials — access control, passwords, injection, updates, backups and data protection — explained plainly.

Most business owners can't audit code — and they shouldn't have to. But they can ask the developer the right questions. The OWASP Top 10, the best-known list of web application security risks, is a good guide: a handful of issues cause most real-world breaches. Here are the questions I'd want any client to ask me, and what good answers sound like.

1. Who can see and change what?

Broken access control sits at the top of the OWASP Top 10. It means a user can reach data or actions they shouldn't — another customer's order, an admin page, someone else's records. The fix is to check permissions on the server for every request, not just hide buttons in the interface.

Good answer: 'Every page and action checks the user's role on the server, and we test that users can't access each other's data.'

2. How are passwords stored?

Passwords must never be stored in plain text or with fast, outdated hashes. OWASP recommends slow, salted password hashing algorithms such as Argon2id, scrypt or bcrypt. Logins should be rate-limited against guessing, and two-factor authentication offered for admin accounts.

3. Is user input handled safely?

Injection attacks happen when input from a form or URL is treated as code — for example, inserted directly into a database query. Parameterised queries (or a data layer that uses them automatically) prevent SQL injection. Output should be escaped so user content can't inject scripts into pages.

4. How are updates handled?

Frameworks, libraries and plugins release security fixes regularly. Ask who applies updates, how often, and how they're tested. Unmaintained dependencies are one of the most common ways sites get compromised.

5. What happens if something goes wrong?

  • Automatic, off-site backups — and a tested restore process
  • Logs of logins and important changes, kept for a reasonable period
  • Alerts for errors and suspicious activity
  • A plan for who does what if a breach is suspected

6. What personal data do we hold?

Collect only the personal data you need, protect it, and delete it when it's no longer required. India's Digital Personal Data Protection Act, 2023 sets obligations for organisations handling personal data, including consent and security safeguards. Keep a simple record of what data you collect, why, and where it's stored.

Questions to ask your developer, in one list

  • Are permissions checked on the server for every page and action?
  • How are passwords hashed, and are logins rate-limited?
  • Is two-factor authentication available for admin accounts?
  • Do all database queries use parameters?
  • How and how often are dependencies updated?
  • Where are secrets stored?
  • What are the backup frequency, location and last tested restore?
  • What is logged, and who reviews alerts?
  • What personal data do we store, and why?

A basic incident plan

If you suspect a breach, speed and order matter. Write this down before you need it.

  • Contain: disable affected accounts, rotate passwords and keys
  • Preserve: keep logs and a copy of the affected system for investigation
  • Fix: patch the cause before restoring service
  • Restore: from a clean backup if needed
  • Inform: affected users and authorities where the law requires
  • Review: what happened and what changes prevent a repeat

Security for small teams: what's realistic

Small businesses can't run a security department, and don't need to. Most attacks exploit basic, well-known weaknesses. Getting the fundamentals right — updates, strong authentication, least-privilege access, parameterised queries, backups — removes most of the risk at little cost. An occasional external review before major launches adds confidence.

Rate limiting and abuse protection

Any public form or login can be abused: password-guessing, spam submissions, scraping. Rate limiting — capping how many attempts a network or account can make in a period — stops most automated abuse cheaply. Combine it with a honeypot field on public forms, account lockouts or delays after repeated failed logins, and alerts when limits are hit unusually often.

Security headers and HTTPS

HTTPS protects data in transit and is expected on every page. Security headers add defence in depth: a Content Security Policy limits which scripts can run, reducing the impact of injected code; other headers prevent the site being framed by other sites or browsers guessing file types. These are small configuration changes with meaningful protection.

Third-party scripts and dependencies

Every analytics tag, chat widget and library runs with your site's trust. Keep a list of what's installed and why, remove what's unused, and load third-party scripts only on pages that need them. For code dependencies, automated alerts for known vulnerabilities make it practical for small teams to stay current.

File uploads

Uploads are a common attack route. Restrict accepted types to what's genuinely needed (for example images and PDFs), check the actual file content rather than trusting the file name, limit size, store uploads outside the application code, and never serve user-uploaded HTML or scripts from your main domain.

Review access regularly

Every few months, review who has admin access to the app, hosting, domain, database and third-party services, and remove anyone who no longer needs it. Former staff and past contractors with lingering access are a common, avoidable risk.

Security when working with contractors

Give contractors their own accounts rather than shared logins, grant only the access their task needs, and remove it when the work ends. Keep code, hosting and domains in your organisation's name.

Security is ongoing

Security isn't a feature you add once. Schedule a short review every quarter: updates applied, access reviewed, backups restored in a test, logs checked. Small, regular habits prevent most incidents.

The basics that are easy to get right

  • HTTPS on every page
  • Secrets (API keys, database passwords) in environment variables, never in code
  • Separate admin accounts for each person, removed when they leave
  • File uploads restricted by type and size
  • Security headers such as a Content Security Policy

Frequently Asked Questions

What is the OWASP Top 10?

A widely used awareness document from the OWASP Foundation listing the most critical security risks to web applications.

Is my small business website really a target?

Yes. Most attacks are automated and target known weaknesses on any site, regardless of size.

How should passwords be stored?

Using slow, salted hashing algorithms such as Argon2id, scrypt or bcrypt, as recommended by OWASP — never in plain text.

Does India have a data protection law?

Yes. The Digital Personal Data Protection Act, 2023 governs how organisations process digital personal data.

How often should backups run?

At least daily for sites with changing data, stored off-site, with restores tested periodically.

What should we do first if we suspect a breach?

Contain it — disable affected accounts and rotate passwords and keys — while preserving logs for investigation.

What is rate limiting?

Capping how many requests or attempts a network or account can make in a period, which blocks most automated password-guessing and spam.

Key Takeaways

  • Broken access control is the top web app risk — check permissions on the server.
  • Store passwords with slow, salted hashes and rate-limit logins.
  • Use parameterised queries to prevent injection.
  • Keep dependencies updated and backups tested.
  • Collect only the personal data you need and protect it.

Sources & further reading

  1. OWASP Top 10 — OWASP Foundation
  2. Authentication cheat sheet — OWASP
  3. Password storage cheat sheet — OWASP
  4. SQL injection prevention cheat sheet — OWASP
  5. Digital Personal Data Protection Act, 2023 — Wikipedia
  6. The Twelve-Factor App — 12factor.net

Have a project that touches web apps & e-commerce? See Web apps & e-commerce development.

Get in touch

Comments

By posting a comment, you agree to the Terms & Conditions and Privacy Policy.