top of page

Can an XML Import Reach Files or Services Outside the Uploaded Document?

Oct 24
3 min read
XML Imports: Review External Resource Access: Identify every XML processor; Restrict external resolution; Verify controlled rejection.

A partner sends an XML file that looks like ordinary structured data. The import workflow reads it, validates it and transforms it before saving records. Each of those stages may involve a different processor and different configuration. Reviewing only the first parser can leave the actual resource boundary unclear.


The business requirement should specify what the importer is allowed to read beyond the uploaded document. For many workflows, the intended answer is nothing except explicitly managed local schemas and application resources.


Inventory the processing chain


OWASP's XML External Entity Prevention guidance explains that resolving external entities from untrusted XML can expose local files, make server-side requests or consume resources. It recommends disabling DTDs where possible and addressing external access during validation and transformation as well as parsing.


Use that guidance as a starting point for an implementation-specific review. The controls and defaults differ by parser. A setting copied from another language or library is not evidence that the current importer enforces the intended policy.


Example: a catalog import with a trusted schema


Consider an illustrative importer that accepts a supplier catalog and checks it against a schema maintained by the application team. The supplier should provide catalog data; it should not decide which remote schema the server downloads during validation.


Document where the trusted schema comes from, how its version is selected and how the processor is prevented from substituting an unapproved resource.


Require configuration evidence


Ask the developer to identify the parser, validator and transformer actually used at runtime, including their versions. Record the settings that control external entity resolution, DTD loading and other external resource mechanisms relevant to that stack.


A configuration failure should be visible. If a required hardening option is unsupported, continuing with a warning may leave the importer operating under assumptions it does not satisfy.


Use harmless isolated tests


Have the implementation team run controlled fixtures in an isolated environment with no sensitive files and no unrestricted network access. The fixtures should establish whether an attempted unapproved resolution is rejected and whether ordinary supported documents still import.


The acceptance record needs observed behavior and configuration evidence, not an exploit demonstration against a live partner or production service.


Separate schema validity from resource permission


A document can be structurally valid for a business purpose while still requesting behavior the application should not allow. Conversely, rejecting an external resource is not the same as reporting that a customer omitted a required product field.


Keep those error classes distinguishable for operations. User-facing messages can remain restrained, while internal diagnostics identify the blocked processing stage without disclosing filesystem paths, credentials or document contents unnecessarily.


Also define limits for input size, processing time and expansion. Preventing external entity resolution does not establish that every XML resource-exhaustion risk has been handled.


Include every entry path in the review


An application may accept XML through uploads, API messages and administrative imports. A secure upload path does not prove that a separate background job uses the same parser configuration.


Trace the shared configuration or test each distinct entry path. If a framework wraps a parser, verify which settings reach the processor that handles the untrusted bytes.


For the handover, preserve the approved resource policy, component versions, fixture results and the owner responsible for updates. Rerun the checks when parser dependencies or transformation requirements change.


The practical acceptance question is whether a normal partner file produces the expected records while an unapproved resource request is refused without side effects. That is more meaningful than a broad statement that “XML is secure” or that a file passed schema validation.


Continue with the related FutureOS guide for the related planning decision.


The published FutureOS introduction describes the project as being in prelaunch. Use this guide to prepare a concrete project discussion; it does not announce an available FutureOS feature.



Prepared with AI assistance. Primary sources checked on October 24, 2026. Examples and procedures are illustrative editorial guidance, not FutureOS product announcements or an independently reviewed assessment.

Comments


bottom of page