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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:05:39+00:00 2026-06-12T07:05:39+00:00

After reading the famous (and only) article about trying to explain why asmxs should

  • 0

After reading the famous (and only) article about trying to explain why asmxs should NOTallow Get requests
so we shouldn’t use : [ScriptMethod(UseHttpGet = true)] , I still I have a question :

Why ?

Web service , as its name is a service , he doesn’t suppose to care if it’s GET or POST :

Even if a person do a CSRF : like embedding in his malicious site :

<script type="text/javascript" src="http://contoso.com/StockService/Stock.asmx/GetQuotes?symbol=msft" /> 

so what ?

Via asmx POV – it is just a normal request.

Can someone please spot for me the problem with example ?

edit

there are many problems solved with new browsers.
this link shows some other methods which should be tested in new browsers.

  • 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-06-12T07:05:40+00:00Added an answer on June 12, 2026 at 7:05 am

    JSON hijacking is briefly explained in this article.

    Let’s suppose that you have a web service that returns a list of credit card numbers to the currently authenticated user:

    [{"id":"1001","ccnum":"4111111111111111","balance":"2345.15"},
     {"id":"1002","ccnum":"5555555555554444","balance":"10345.00"},
     {"id":"1003","ccnum":"5105105105105100","balance":"6250.50"}]
    

    Here’s how the attack could be performed:

    1. Get an authenticated user to visit a malicious page.

    2. The malicious page will try and access sensitive data from the application that the user is logged into. This can be done by embedding a script tag in an HTML page since the same-origin policy does not apply to script tags. <script src="http://<json site>/json_server.php"></script>. The browser will make a GET request to json_server.php and any authentication cookies of the user will be sent along with the request.

    3. At this point while the malicious site has executed the script it does not have access to any sensitive data. Getting access to the data can be achieved by using an object prototype setter. In the code below an object prototypes property is being bound to the defined function when an attempt is being made to set the "ccnum" property.

      Object.prototype.__defineSetter__('ccnum',function(obj) {
          secrets = secrets.concat(" ", obj); 
      
      });
      

    At this point the malicious site has successfully hijacked the sensitive financial data (ccnum) returned by json_server.php.

    There are also other forms of JSON hijacking techniques which do not rely on the browser support for the __defineSetter__ function. That’s just one way to conduct the attack but there are many others as described in this article such as Array constructor clobbering, UTF-7, ES5 functionality.

    For this reason, GET requests returning JSON are disabled by default in ASP.NET.

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

Sidebar

Related Questions

Possible Duplicate: What C++ idioms should C++ programmers use? After reading books like C++
After reading the Service Oriented Architecture Principles site and the respective Wikipedia article I
After reading this article, it makes sense to rebase to gather changes from the
After reading the tips from this great Nettuts+ article I've come up with a
After reading this post, and the suggestion to use Team Edition for Database Professionals
After reading the topic Is MD5 really that bad , I was thinking about
After reading the android documentation about String, which includes this: This class is implemented
After reading about Mapper XMLs I can't help to wonder how one might go
After reading this SO question and noting the consensus about just how evil Thread.Sleep()
After reading a few posts and reading on the developers page about ASYNCTASK, I

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.