Who's reading?

Choose a view to put what you are looking for first. The page and the menu re-prioritise around it, and a margin note always says why.

Who's reading?

Security

Security of this site.

This site is a set of static files. There is no database, no login, no admin panel and no forms: no code of mine runs on the server at all.

What there is to attack

  • Static HTML, CSS and JavaScript, built in GitHub Actions and copied to the web server.
  • No server-side code: PHP and other scripts are blocked on the server.
  • The deployment pipeline: a deploy-only key, used only by GitHub Actions.

Threat model

ThreatDefence
Injected scripts (XSS)A strict content security policy allows only this site's own scripts, plus hashes for the few inline ones. There is no user-generated content on the pages.
Spam and form abuseThere are no forms. Contact links open your own email app, so there is nothing on the server to abuse.
Leaked secretsThe pages need no secrets at all. Deployment credentials exist only in CI secrets, never in the pages or the repository.
Supply-chain compromiseA committed lockfile, clean installs in CI, GitHub Actions pinned to commit hashes, and no third-party scripts in the pages.
Clickjacking and data leaks to other sitesFraming is refused, and the referrer policy sends only the origin to other sites.
Personal data published by mistakeEvery build is scanned for identity numbers and other personal details, and fails if any are found.

Headers this site sends

Strict-Transport-Security
max-age=31536000; includeSubDomains
X-Content-Type-Options
nosniff
Referrer-Policy
strict-origin-when-cross-origin
X-Frame-Options
DENY
Cross-Origin-Opener-Policy
same-origin
Cross-Origin-Resource-Policy
same-site
Permissions-Policy
camera=(), microphone=(), geolocation=(), payment=(), usb=(), interest-cohort=(), browsing-topics=()

Content security policy

The policy allows scripts only from this site and the optional cookieless analytics beacon, and forbids forms and embedded frames. Search runs as WebAssembly, which needs the wasm-unsafe-eval keyword; it permits compiling WebAssembly only, not JavaScript eval.

DirectiveAllowed sources
default-src'self'
script-src'self', 'wasm-unsafe-eval', https://static.cloudflareinsights.com, 5 sha256 hashes for inline code
style-src'self', 1 sha256 hash for inline code
img-src'self', data:, https://images.unsplash.com
font-src'self'
connect-src'self', https://cloudflareinsights.com
frame-src'none'
form-action'none'
base-uri'self'
object-src'none'
frame-ancestors'none'
upgrade-insecure-requests(on)

Privacy

  • No cookies.
  • No third-party scripts or fonts.
  • Your choice of view, reading level and theme is stored only in your own browser.
  • The university-referrer suggestion is worked out in your browser; nothing is sent anywhere.

My security record

I report web application vulnerabilities to the organisations that own them. 50+ responsible-disclosure acknowledgements from organisations across Sri Lanka.

  • University of York (UK): Acknowledged for responsible vulnerability disclosure; listed on the official Hall of Thanks.
  • Dialog Axiata PLC (Sri Lanka): Acknowledged for responsible disclosure of security vulnerabilities.

How I disclose

  1. I report only to the affected organisation, through its published channel where one exists.
  2. I test only what is needed to demonstrate a vulnerability and never access, keep or share personal data.
  3. I allow a reasonable remediation period before discussing any finding publicly, and only in anonymised form.

Only organisations that have publicly acknowledged a report are named. Others appear only in the total.

Report a vulnerability

Email hi@haranbabi.me. Contact details are also in/.well-known/security.txt (RFC 9116). I follow the samedisclosure policy I ask of others: tell me privately, give me time to fix it, and I will credit you here.

Hall of thanks

No reports yet. Be the first.

Back to top

Keyboard shortcuts

⌘ K / Ctrl K
Search the site and run commands
`
Open the terminal
?
Show these shortcuts
Esc
Close any panel or menu
Tab / Shift Tab
Move between links and buttons

Terminal

Type help to see what you can do here. Press Escape or type exit to close.