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

  • Home
  • SEARCH
  • 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 121421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:58:05+00:00 2026-05-11T03:58:05+00:00

I have a Silverlight application that communications with an ASP.NET backend through WCF. I

  • 0

I have a Silverlight application that communications with an ASP.NET backend through WCF. I have a set of DataContract objects that I defined that (for the most part) match my LINQ to SQL generated types that my ASP.NET backend works with. My WCF code generates instances of my DataContract objects from LINQ to SQL generator types when I need to transfer data to my Silverlight client.

My question is the following: What are the security implications of exposing an index (which is used as the primary key in the database) through my DataContract objects?

An example table (Position) in my database has the following columns:

  • PositionIndex : int (primary key)
  • PositionName : string
  • PositionType : int

And the corresponding object is (more or less) this:

public class Position {     public int PositionIndex { get; set; }     public string PositionName { get; set; }     public int PositionTYpe { get; set; } } 

I’m concerned because I know how easy it is to reverse engineer Silverlight DLLs through Reflection – any potential bad guy will know I’m giving a database index to the client, and since they can reverse engineer Silverlight DLLs, they can easily get the URL of my WCF services and try to break them. Now, I’ve been good and taken the advice of the many who came before me and I’ve made many, many checks on the ASP.NET side to verify that my WCF services are getting legal input, but I’m still concerned that I’m doing something bad by giving potential bad guys some, not much, but some, insight into how the backend of my system is designed, and I’ve been around long enough to know that’s more than enough for a determined person to start with.

What do you guys think? If I’m doing something bad by using the index in my DataContracts, can you suggest an alternative? I’m finding it difficult to come up with a design that doesn’t provide that index, as I have a need for the Silverlight client to update rows already in my database, and having the index is the best way I can think to help the ASP.NET side determine which row in the database it needs to update.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T03:58:06+00:00Added an answer on May 11, 2026 at 3:58 am

    https://stackoverflow.com/questions/454771/is-it-safe-to-expose-database-indices-to-silverlight-clients

    It is standard practice to use primary keys in URLs and such. What you have to be careful about is to make sure the client is permitted to view the resource before sending it back.

    🙂

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

Sidebar

Related Questions

I have Silverlight application that retrieves data from the database through a WCF Service.
I have a Silverlight application that is built from a set of Silverlight class
I have a Silverlight 2 application that is consuming a WCF service. As such,
I have a silverlight 2 beta 2 application that accesses a WCF web service.
I have a simple Silverlight application that use WCF RIA Services to communicate with
I am developing an ASP.NET intranet application that needs to have an interactive map
I have a Silverlight application communicating with the server side through WCF services. Initially
I have a Silverlight 4.0 (ASP.Net 4.0) application on our website for our customers
I have a Silverlight application that communicates to a Silverlight-enabled WCF service, both of
I have a silverlight application that uses wcf service. This application is shown from

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.