Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 462593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:05:24+00:00 2026-05-12T23:05:24+00:00

How secure are XPS documents? After looking from the inside of an XPS document,

  • 0

How secure are XPS documents? After looking from the inside of an XPS document, found the Unicode-string property. Could someone inject e.x. a script into the Unicode string property?

How does the XPS viewer treat the Unicode string property? As a collection of glyphs or what?

UPDATE: I added the following string as UnicodeText

!@#$%^&*()_+ 

and the XPS viewer refused to open the file. This is how this question came into my mind

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:05:25+00:00Added an answer on May 12, 2026 at 11:05 pm

    XPS documents, as opposed to (coughs) some other format cannot contain scripts or active content. They are only used as a high-fidelity pre-print format. That being said, it’s not entirely impossible for XPS parsers to contain security vulnerabilities. And they can be exploited. So far I haven’t heard of any such exploits, though.

    But back to your point. If someone wants to put a script into a string in an XPS document he can surely do so. He just shouldn’t expect it to be executed. If some software actually does that, then it’s probably a security problem with the software and not with the file format.

    Just because you can put malware into a text file (remember iloveyou.vbs?) that doesn’t mean that text files themselves have a security vulnerability 🙂

    ETA: The UnicodeString attribute in question aids searching inside the XPS file:

    The UnicodeString attribute holds the array of Unicode scalar values that are represented by the current element. Specifying a Unicode string is RECOMMENDED, as it supports searching, selection, and accessibility.

    And while the string itself is expected to be in a certain format (also detailed in the standard on page 115), the reason why the viewer didn’t want to accept your input is that it’s not even well-formed XML since the ampersand (&) appears unescaped. I assume that it would work if you encode the ampersand as & as required by XML. The spec also states that

    The standard XML escaping mechanisms are used to specify XML-reserved characters.

    But even with that in place, the relationship between the UnicodeString attribute and other parts of the document are quite intricate. They wrote over half a page on that and which combinations are valid and which are not. So I’d suggest you read up on that first, before trying to play around further 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for secure ways to pass data between a client running Flash and
Is SSL secure enough for using sensitive data (like password) in query string? Is
Can someone recommend a secure FTP implementation that works well on Windows Server 2000?
Is this code secure to prevent XSS attacks ?? <?php $string = <b>hello world!</b>;
Objective: Secure my Java application from reverse engineering. Idea: split the program into two
We are looking to secure a bunch of ASP.Net 2.0 .asmx web services. The
I'm trying to secure a connection from a Java Client/Server application that communicates over
secure way to pass large string values between pages, i have used PHP in
Sometimes when I secure a PDF document in Adobe Acrobat (9), other people using
I'm using the Secure FTP product from EnterpriseDT . The setup below worked for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.