Skip to content
Cache bugs Write-up Advanced

Neural Network Backdoors: When Model Poisoning Led to System Compromise

A cache and backend disagreed on what made a request unique, allowing cached responses to be influenced. These cached responses were used to retrain a model, so an attacker could poison the model and alter automated decisions.

infosecwriteups.com

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.com

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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a mismatch between how the cache and backend normalised request headers, combined with a lack of validation of cached data before it was used for model retraining.

Impact

Automated decisions could be manipulated, detection logic weakened, and internal trust boundaries crossed, though the text does not specify the exact real-world consequences.

What the attacker needed

Access to the internal model management endpoint; ability to influence cached responses; knowledge of the retraining schedule

The fix

The issue was fixed by strictly validating ingestion sources, aligning cache key logic with backend validation, verifying dataset integrity before retraining, and improving monitoring of training anomalies.

How it was found

  1. Found an internal model management endpoint referenced in a JavaScript file.
  2. Noticed responses were cached at the CDN layer.
  3. Observed that requests looking identical to the application were treated differently by the cache.
  4. Traced data flow and discovered cached responses were used to retrain a lightweight model on a schedule.
  5. Used harmless markers in test samples to safely influence cached data.
  6. After one retraining cycle, observed measurable changes in classification of controlled test inputs.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A cache is a fast storage layer that saves copies of responses to serve them quicker. Here, the cache and the backend server disagreed about when two requests were the same, so an attacker could make the cache store a response they controlled. That response was later used to retrain a machine learning model, which meant the attacker could subtly change how the system made decisions.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.