LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2006, 04:07 AM   #1
vibhory2j
Member
 
Registered: Apr 2004
Location: India
Posts: 42

Rep: Reputation: 15
XML Unsecure


Hi All,

It is said that XML is most unsecured way of transacting online. I just want to know why still it is used most widely.

Thanks in advance for any help.
 
Old 09-18-2006, 04:22 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Plain text is plain text, whatever file format the data is actually in. Obscure formats may slow down an attacker looking for an easy target, but they will take more effort to create and use. XML is able to be understood by many languages and systems and so is easy to use. Security and encryption should have nothing to do with the data format being transmitted, other than using the most suitable encyption scheme for the transmission medium, i.e. streaming or file transfer.
 
Old 09-18-2006, 03:05 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
That's easily explained...

XML is simply a file-format. If you look at the source-code to an HTML page, an XML file looks a whole lot like that, with "tags" that are interspersed with text.

What makes the XML format interesting and useful is that it consists of "ordinary text" and it is self-describing. The tags are arranged in a hierarchical structure such that programs can readily extract any piece or section of information from it. They can also verify the XML file against a so-called document-type definition (DTD) to verify that the document they received conforms to the tag-arrangement they expect.

For example, an "invoice" contains a "invoice-identifier," a "bill-to customer information" section, an optional "ship-to customer section," and a collection of zero or more "line items." You can express such a data-structure easily in XML. The application receiving it can first verify the received data against the DTD, then proceed to parse the data. The "invoice" describes itself sufficiently to allow this.

But XML contains no security provisions whatever. It's not designed to. Any practical application of XML on a public network for a financial or business transaction would necessarily employ some kind of encryption or security technology -- such as, say, SSL2 ("https:") to make sure that all of the information being exchanged (XML or not...) will be transferred securely and without compromise.
 
Old 09-18-2006, 05:17 PM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Yes you can use xml security library to encrypt the xml data you need to protect.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: could not find DocBook XML DTD V4.1.2 in XML catalog Fadoksi Linux - Software 1 07-16-2006 06:41 AM
checkit.com shows 12345 closed (unsecure). Please help to secure it. khurdp Linux - Security 11 01-03-2006 08:38 AM
rpc unsecure Fonk Linux - Security 3 07-26-2004 07:02 AM
how unsecure is tail -f WeNdeL Linux - Security 6 03-06-2003 03:22 PM
unsecure computer? Chijtska Linux - Security 9 03-06-2003 11:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration