Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to prevent modifying "JSON response" by proxy
Qt 6.11 is out! See what's new in the release blog

How to prevent modifying "JSON response" by proxy

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 481 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BD9a
    wrote on last edited by
    #1

    Hey, I want to protect some my project by using HWID Check.

    I have sth like this:

    manager->get(QNetworkRequest(QUrl("http://server.url/api.php?hwid=HWIDHERE")));
    

    and when HWID is found in Database I got "true" or "false" response.

    How to prevent "potential crackers" from just modyfing that value by using proxy? Is it easy?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by Bonnie
      #2

      I don't know much about network, but I think at least you should use https.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BD9a
        wrote on last edited by
        #3

        Yeah I know, current "server" is only for testing, first time doing this.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #4

          Hi,

          If you want to secure your data, the first step is using a secure connection.

          Then if it's that precious, you should encrypt your data as well.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BD9a
            wrote on last edited by
            #5

            I will go to more specific forum with this problem, but I will ask it there too. Is it good idea to add another layer of encryption? Like sth before SSL.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              That's up to you. Securing a connection and securing data are two different things. So you have to decide based on your data modeling and use.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ChrisW67
                wrote on last edited by
                #7

                Assuming that the attacker is going to try to subvert the network communication then using a secure (HTTPS) connection alone will only slow a determined attacker down by a minute or two (see tools like Fiddler). If the underlying request and response payloads are cryptographically protected (e.g encrypted and signed) and made time sensitive then faking, replaying, or otherwise tampering with the response becomes a harder proposition.

                A determined attacker may simply patch the binary to either skip the check or force a positive response.

                This is a game of whack-a-mole. How much effort do you want to put in?

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved