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 7042561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:11:00+00:00 2026-05-28T02:11:00+00:00

There is a security concept regarding the calls to the WCF service that I

  • 0

There is a security concept regarding the calls to the WCF service that I can’t seem to understand.

I’ve built a sample Silverlight solution, and enabled WCF RIA.
I have an invoke operation ( or any of the auto-generated CRUD’s for that matter ), which I’ve annotated with [RequiresAuthentication()] :

[RequiresAuthentication()]
[Invoke]
public void DeleteResource(string id)
{
    //...
}

Next, I changed web.config to enable forms authentication :

<system.web>
  <httpModules>...</httpModules>
  <compilation>...</compilation>
  <authentication mode="Forms" />    
</system.web>

Now only authenticated users can call this method. So in the client I need to authenticate:

FormsAuthentication auth = new FormsAuthentication();
auth.Login(textBoxUsername.Text, textBoxPassword.Text);

After a succesful login, calls can be made to the method.

When looking at Fiddler through this process I can see two things:

  1. Set-Cookie: .ASPXAUTH=F8FFB8B….. ( from the login step )
  2. http://localhost:1107/…/DomainService.svc/binary/DeleteResource ( when the method is called)

So a harmful user can do the following :

  1. Login to my app like a regular user (He registered and got credentials).
  2. Open up Fiddler while working with the app and copy the cookie and URL I just mentioned.
  3. Construct an HTTP call to that URL with the cookie (using a C# Webclient for example), and start deleting resources.

If this is possible , how can I block this security hole ?
And if not, what’s preventing the user from doing that ?

  • 1 1 Answer
  • 3 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-28T02:11:01+00:00Added an answer on May 28, 2026 at 2:11 am

    To be honest I do not see a security hole here:

    1. If a user was able to login, he is – as I assume – authorized to perform mentioned operation.
    2. Authentication != Authorization. You should not only check if an user is authenticated, but if he/she is authorized to perform any single operation (on a service side of course).
      From the security point of view there should be no difference between calling operation from a browser and using “manually” prepared request – authorization should be performed on the service level on EVERY call (you never should trust a client – i.e. WebBrowser from the very reason you have posted this question). If the user tries something he/she is not authorized to, authorization error should occur.
    3. Authentication cookie should have authentication expiration time set (e.g. for 30 minutes).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any security exploits that could occur in this scenario: eval(repr(unsanitized_user_input), {__builtins__: None},
When it comes to password security there are things that people agree on like
Is there a good method of form security that does not involve CAPTCHA? CAPTCHA
I've created a Windows Service that accepts commands from remote machines via WCF. One
Are there any security issues keeping the .NET PDB files on the real server?
Are there any security concerns when putting an HTTPS iframe in an HTTPS page?
Is there any security risk of injection in the following PHP script? <?php $empfaenger_1
There are many security reasons why one would want to drop an HTTP connection
Are there any relevant security issues in using a file cache (i.e. PEAR Cache_Lite)
Is there something new about row-level security in SQL Server 2012? In 2008 and

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.