Server system and unauthorized user detection method
The server system addresses the security gap in conventional authentication technologies by comparing user identifiers during authentication and authorization, using client certificates to ensure only legitimate users access the system, thereby enhancing security and preventing unauthorized access.
Patent Information
- Application Number
- PCT/JP2023/030661
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2023-08-25
- Publication Date
- 2024-08-29
AI Technical Summary
Conventional authentication and authorization technologies, such as OAuth 2.0 and SAML, are insufficient in preventing unauthorized users from accessing clients as legitimate users, leading to security vulnerabilities against unauthorized access.
A server system and method that acquire and compare user identifiers during authentication and authorization processes to verify the correctness of the user, using client certificates or other unique identifiers that cannot be obtained through phishing attacks, ensuring that only legitimate users access the system.
Effectively detects and blocks unauthorized access by confirming the identity of users through matching identifiers, enhancing the security of the server system by preventing impersonation and man-in-the-middle attacks.
Smart Images

Figure JP2023030661_29082024_PF_FP_ABST
Abstract
Description
Server system and method for detecting unauthorized users
[0001] The present invention relates to a server system and a method for detecting an unauthorized user.
[0002] Conventionally, known authentication and authorization technologies include OAuth 2.0 (RFC6749), the authorization code flow of OpenID Connect Core 1.0, and SAML SP-initiated. In addition, Japanese Patent Laid-Open Publication No. 2020-53100 (Patent Document 1) discloses a technology for selecting an appropriate authorization server when multiple authorization servers exist. This publication states that "upon receiving an authorization request, the authorization server has first sending means for identifying a first authorization server where the user information is located and sending an authentication request to the first authorization server; second sending means for the first authorization server to authenticate the user and send an authorization response to the client together with information indicating the first authorization server where the user information is located as a destination; third sending means for the client to identify the first authorization server using the second identifying means based on the authorization response and send a token request to the first authorization server requesting an authorization token for accessing a resource server; and third sending means for the first authorization server to issue an authorization token in response to the token request."
[0003] Japanese Patent Application Laid-Open No. 2020-53100
[0004] Conventional technologies have not been able to prevent unauthorized users from logging in to a client as a legitimate user. Taking OAuth as an example, there has been a problem in which a user (an unauthorized user) other than the user who has been authenticated and authorized (consented) by the authorization server can log in to a client. As such, conventional technologies have provided insufficient security against unauthorized access.
[0005] Therefore, an object of the present invention is to realize detection of unauthorized users and improve the security of the server system.
[0006]
[0010] To achieve the above object, one representative server system of the present invention comprises a client that accepts access from a user and a server that receives delegation from the client and processes authentication and / or authorization requests of the user, wherein the server receives the request, acquires an identifier representing the user, and stores it in a response to the request, and the client receives the response from the user, acquires an identifier representing the user, and compares the acquired identifier with the identifier stored in the response to determine whether the sender of the response is a valid user.
[0011] Also, one representative fraudulent user detection method of the present invention is a fraudulent user detection method for a server system that comprises a client that accepts access from a user and a server that receives delegation from the client and processes authentication and / or authorization requests of the user, wherein the method includes the steps of the server receiving the request, acquiring an identifier representing the user, and storing it in a response to the request, and the client receiving the response from the user, acquiring an identifier representing the user, and comparing the acquired identifier with the identifier stored in the response to determine whether the sender of the response is a valid user.
[0007] According to the present invention, it is possible to detect unauthorized users and improve the security of a server system. Problems, configurations, and effects other than those described above will become clear from the following description of the embodiment.
[0008] Descriptive diagram of basic authentication and authorization processing Descriptive diagram of authentication and authorization processing by the system of Example 1 Descriptive diagram of blocking unauthorized access Descriptive diagram of system elements Configuration diagram of the entire system Flowchart showing the processing procedure of the authorization server Flowchart showing the processing procedure of the client Descriptive diagram of data managed by the system Descriptive diagram of data usage Descriptive diagram of data management
[0009] Hereinafter, an embodiment will be described with reference to the drawings.
[0010] FIG. 1 is an explanatory diagram of the basic authentication and authorization process. This FIG. 1 shows a specific example of the authorization code flow of OAuth 2.0 and OIDC Core 1.0. A user accesses a client 120 via a browser 110 on a user terminal. Here, it is assumed that the client 120 is requesting the provision of data stored in a resource server 140.
[0011] The client 120 delegates user authentication and authorization to the authorization server 130 (1). Specifically, the client 120 redirects the browser 110 to the authorization server 130. As a result, the browser 110 sends an authorization request to the authorization server 130.
[0012] Upon receiving the authorization request, the authorization server 130 executes authentication and authorization processing (2). Specifically, the authorization server 130 transmits a screen for accepting input of login information (login screen) and a screen for accepting confirmation input (consent screen) to the browser 110. The browser 110 displays the login screen and consent screen and accepts input from the user. The browser 110 transmits the accepted data to the authorization server 130. The authorization server 130 authenticates and authorizes the user using the data received from the browser 110.
[0013] The authorization server 130 returns the authentication and authorization results to the client 120 as an authorization response (3). Specifically, the authorization server 130 redirects the client 120 to the browser 110. As a result, the browser 110 sends the authorization response to the client 120.
[0014] The client 120 sends a token request to the authorization server 130 and receives a token response from the authorization server 130. The client 120 then sends an API (Application Programming Interface) request to the resource server 140. The resource server 140 provides data to the client 120 in the API response.
[0015] 1, it is not possible to confirm that the user who logged in in the authentication and authorization process (2) is the same as the user who returned the results in the result return process (3). Therefore, in the system of this embodiment, an identifier representing the user is acquired to determine whether the user in the authentication and authorization process (2) is the same as the user in the result return process (3).
[0016] 2 is an explanatory diagram of authentication and authorization processing by the system of Example 1. In the authentication and authorization processing (2) of Fig. 2, the browser 110 transmits a client certificate to the authorization server 130 along with the user input data on the login screen and the consent screen. The authorization server 130 stores the hash value of the client certificate in the authorization response.
[0017] In the result return process (3) in Fig. 2, the client 120 receives the authorization response and also acquires the hash value of the client certificate from the browser 110. The client 120 compares the client certificate acquired from the browser 110 with the hash value of the client certificate included in the authorization response. If the comparison results in a match, the client 120 determines that the access is from a legitimate user and provides the data from the resource server 140.
[0018] In this way, the system of the first embodiment obtains data related to the client certificate in the authentication and authorization process (2) and the result return process (3), and compares them. The client certificate is an example of an identifier that represents a user. The identifier that represents a user uses data that can be used as a user credential, like a client certificate, and that cannot be obtained through a phishing attack. For example, with a client certificate, even if a user is redirected to a fake site prepared by an attacker in a phishing attack, the attacker cannot steal the client's private key. Therefore, an attacker cannot masquerade as a legitimate user and present a client certificate to the client or authorization server. The identifier that represents a user may be the identification number of an IC card.
[0019] 3 is an explanatory diagram of blocking unauthorized access. An attacker, who is an unauthorized user, accesses the client 120 via a browser on the attacker's user terminal. The client 120 delegates user authentication and authorization to the authorization server 130. Specifically, the client 120 redirects the attacker's browser to the authorization server 130 as the destination. The attacker stops processing at this point and obtains an authorization request. Then, the attacker sends an email with the authorization request set as a hyperlink to the legitimate user. When the legitimate user opens the email and clicks the hyperlink, the browser 110 sends an authorization request to the authorization server 130.
[0020] Upon receiving the authorization request, the authorization server 130 executes authentication and authorization processing. Specifically, the authorization server 130 transmits to the browser 110 a screen for accepting input of login information (login screen) and a screen for accepting confirmation input (consent screen). The browser 110 displays the login screen and consent screen and accepts input from a legitimate user. The browser 110 transmits the accepted data to the authorization server 130. The authorization server 130 performs user authentication and authorization using the data received from the browser 110. In other words, this authentication and authorization is performed by a legitimate user.
[0021] The authorization server 130 returns the result of the authentication and authorization as an authorization response to the client 120. Specifically, the authorization server 130 redirects the browser 110 to the client 120. As a result, the browser 110 sends the authorization response to the client 120. At this point, an attacker, who is an unauthorized user, acts as a man-in-the-middle (MAN-IN-THE-MID), stops the processing, and fraudulently obtains the authorization response.
[0022] An attacker attempts unauthorized access by sending a fraudulently obtained authorization response to the client 120. In the basic processing shown in FIG. 1, the client 120 would not be able to detect that the user has been changed, and the attacker's access would be successful. However, in FIG. 3, the authorization server 130 stores the hash value of the client certificate obtained from the browser 110 as data in the authorization response. The client 120 then obtains the client certificate at the TCP layer when the browser sends the authorization response, and compares the hash value of the client certificate included as data in the authorization response with the client certificate sent at the TCP layer when the authorization response is sent. If the authorization response is sent by an attacker, the client certificate cannot be obtained, or the client certificates do not match. Therefore, the client 120 determines that the access is from an unauthorized user and can block the access.
[0023] Figure 4 is an explanatory diagram of system elements. This diagram uses OAuth 2.0 and OIDC Core 1.0 as examples. The browser is the browser used by the user. The user accesses the client and authorization server via the browser. The client provides services to the user. The client delegates user authentication to the authorization server. The client also authenticates the user using a token issued by the authorization server. In some cases, the client makes an API call using the token to obtain the user's resources (information) from the resource server. The authorization server authenticates the user, obtains consent from the user as necessary, and issues a token to the client. The resource server holds the user's resources (information). The resource server publishes this information via an API. The resource server also controls access using the token issued by the authorization server. Note that the resource server is not essential to this system.
[0024] Furthermore, in the system of this embodiment, the authorization server has a function of acquiring an identifier representing a user and storing it in an authorization response, and the client has a function of acquiring an identifier representing a user and comparing it with the identifier stored in the authorization response to determine whether the user is legitimate.
[0025] FIG. 5 is a diagram illustrating the overall system configuration. The browser 110 runs on a user's terminal. The client 120 is a computer having a CPU (Central Processing Unit) 121, a memory 122, a storage 123, and a communication interface 124. Specifically, the CPU 121 reads a predetermined program from the storage 123, loads it into the memory 122, and sequentially executes it to realize various functions of the client 120. The communication interface 124 communicates with the browser 110 and the authorization server 130. The authorization server 130 is a computer having a CPU 131, a memory 132, a storage 133, and a communication interface 134. Specifically, the CPU 131 reads a predetermined program from the storage 133, loads it into the memory 132, and sequentially executes it to realize various functions of the authorization server 130. The communication interface 134 communicates with the browser 110 and the client 120.
[0026] 6 is a flowchart showing the processing steps of the authorization server. The authorization server 130 sequentially executes the following steps S201 to S206. Step S201: The authorization server 130 acquires an identifier ID1 representing the user from a request received during user authentication or when obtaining the user's consent. Then, the process proceeds to step S202. Step S202: The authorization server 130 determines whether or not the identifier ID1 representing the user has been acquired. If the identifier ID1 has been acquired, the process proceeds to step S203. If the identifier ID1 has not been acquired, the process proceeds to step S206.
[0027] Step S203: The authorization server 130 stores the identifier ID1 representing the user in the authorization response. Then, proceed to step S204. Step S204: The authorization server 130 signs the authorization response. Then, proceed to step S205. Step S205: The authorization server 130 sends the authorization response to the client 120 by redirection, and ends the processing. Step S206: The authorization server 130 sends an error response to the client 120 by redirection, and ends the processing.
[0028] 7 is a flowchart showing the processing steps of the client 120. The client 120 sequentially executes the following steps S301 to S308. Step S301: The client 120 acquires the identifier ID2 representing the user from the request received when the authorization response is received. Then, the process proceeds to step S302. Step S302: The client 120 determines whether or not the identifier ID2 representing the user has been acquired. If it has been acquired, the process proceeds to step S303. If it has not been acquired, the process proceeds to step S308.
[0029] Step S303: The client 120 obtains the identifier ID1 representing the user stored in the authorization response. Step S304: The client 120 determines whether or not the identifier ID1 representing the user has been obtained. If it has been obtained, the process proceeds to step S305. If it has not been obtained, the process proceeds to step S308.
[0030] Step S305: The client 120 compares the identifier ID1 with the identifier ID2 and performs processing to confirm that they are equal. Then, the process proceeds to step S306. Step S306: The client 120 determines whether the identifier ID1 and the identifier ID2 are equal. If they are equal, the process proceeds to step S307. If they cannot be acquired, the process proceeds to step S308.
[0031] Step S307: The client 120 determines that the check of the identifier representing the user was successful and ends the process. In other words, the client 120 determines that the sender of the authorization response is the correct user and ends the process. Step S308: The client 120 determines that the check of the identifier representing the user was unsuccessful and ends the process. In other words, the client 120 determines that the sender of the authorization response is an unauthorized user and ends the process.
[0032] 8 is an explanatory diagram of data managed by the system. The client 120 manages the following data: 1. An endpoint of the authorization server that the client accesses when delegating authentication and authorization to the authorization server 2. An identifier for identifying the client 3. A signature verification key for verifying the signature of the authentication and authorization result
[0033] The authorization server 130 manages the following data: 10. An endpoint of the client that the authorization server accesses when sending the authentication and authorization result to the client 11. An identifier for identifying the client 12. User credentials of the user 13. A signing key for signing the authentication and authorization result 14. A login screen 15. A consent screen
[0034] The user or browser 110 manages the following data: 20. User credentials (e.g., username and password) for authenticating with the authorization server 21. Identifiers representing the user 22. Endpoints for accessing the client
[0035] 9 is an explanatory diagram of the use of the data shown in FIG. 8. The browser 110 accesses the client 120 by specifying the endpoint 22 as the destination. The client 120 assigns an identifier 2 and redirects to the authorization server 130 by specifying the endpoint 1 as the destination. The authorization server 130 identifies the client using the identifiers 2 and 11, and sends a login screen 14 and a consent screen 15 to the browser 110. The user inputs user credentials 20, and the browser 110 sends the user credentials 20 and the identifier 21 to the authorization server 130.
[0036] The authorization server 130 authenticates the user using the user credentials 20 and 12. It then stores the identifier 21 in the authentication authorization result (authorization response), signs the authentication authorization result with the signature key 13, and redirects it to the endpoint 10 (client 120). The browser 110 sends the identifier 21 when redirecting the authentication authorization result to the client 120. The client 120 verifies the signature of the authentication authorization result with the signature verification key 3. It then verifies that the sent identifier 21 is the same as the identifier 21 in the authentication authorization result.
[0037] 10 is an explanatory diagram of data management. An identifier 21 representing a user is managed by a browser 110. An endpoint 1 of a client accessed when sending the result of authentication and authorization, an identifier 2 for identifying the client, and a signature verification key 3 are stored in a memory 122 of a client 120. An endpoint 10 of a client accessed when sending the result of authentication and authorization, an identifier 11 for identifying the client, user credentials 12, a signature key 13, a login screen 14, and a consent screen 15 are stored in a memory 132 of an authorization server 130.
[0038] As described above, the disclosed server system includes a client 120 that accepts access from a user, and an authorization server 130 that receives delegation from the client 120 and processes authentication and / or authorization requests from the user. The server receives the request, acquires an identifier representing the user, and stores the identifier in a response to the request. The client 120 receives the response from the user, acquires the identifier representing the user, and compares the acquired identifier with the identifier stored in the response to determine whether the sender of the response is the browser of a valid user. This makes it possible to detect unauthorized users and improve the security of the server system.
[0039] Furthermore, the server authenticates and authorizes the user, and the client denies access from the sender of the response if the comparison result is a mismatch, thereby blocking access by an unauthorized user who exploits the results of authentication and authorization by a legitimate user.
[0040] A client certificate can be used as the identifier representing the user. Furthermore, identification information read by the user's terminal from a predetermined medium can be used as the identifier representing the user. The identifier representing the user uses data that can be used as a user credential, such as a client certificate, and that cannot be obtained through a phishing attack. For example, if a client certificate is used, even if a user is redirected to a fake site prepared by an attacker in a phishing attack, the attacker cannot steal the client's private key. Therefore, an attacker cannot masquerade as a legitimate user and present a client certificate to the client or authorization server.
[0041] Furthermore, the server digitally signs the response that stores the identifier representing the user, and the client verifies the digital signature before performing the comparison, thereby ensuring that the identifier stored in the response has not been tampered with, improving security.
[0042] The system further includes a resource server 140 that holds resource data to be provided to the disclosed user, and the server authorizes access to the resource data, thereby preventing unauthorized access to the resource data.
[0043] The present invention is not limited to the above-described embodiments, but includes various modifications. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and are not necessarily limited to those including all of the described configurations. Furthermore, the present invention is not limited to the deletion of such configurations, but may also include replacement or addition of configurations. For example, the present invention is applicable even to a configuration in which authentication and authorization delegation is performed in multiple stages.
[0044] 110: Browser, 120: Client, 130: Authorization Server, 140: Resource Server
Claims
1. A server system comprising: a client that accepts access from a user; and a server that receives delegation from the client and processes authentication and / or authorization requests for the user, wherein the server receives the request, obtains an identifier representing the user and stores it in a response to the request; and the client receives the response from the user, obtains an identifier representing the user, and compares the obtained identifier with the identifier stored in the response to determine whether the response has been sent by a valid user.
2. A server system as described in claim 1, wherein the server authenticates and authorizes the user, and the client denies access from the source of the response if the comparison results in a mismatch.
3. A server system according to claim 1, wherein the identifier representing the user is a client certificate.
4. A server system according to claim 1, characterized in that the identifier representing the user is identification information read by the user's terminal from a specified medium.
5. A server system as described in claim 1, wherein the server electronically signs a response that stores an identifier representing the user, and the client verifies the electronic signature before performing the comparison.
6. A server system according to claim 1, further comprising a resource server which holds resource data to be provided to said user, said server being adapted to authorize access to said resource data.
7. A method for detecting an unauthorized user in a server system comprising: a client that accepts access from a user; and a server that receives delegation from the client and processes authentication and / or authorization requests of the user, comprising the steps of: the server receiving the request, acquiring an identifier representing the user, and storing it in a response to the request; and the client receiving the response from the user, acquiring an identifier representing the user, and comparing the acquired identifier with the identifier stored in the response to determine whether the sender of the response is a valid user.
Citation Information
Patent Citations
Authentication system and authentication method
JP2001186122A
User authentication system
JP2005149239A
Delegation-of-authority system, control method and program
JP2019046060A
