IP Library Granted Patent US 12,317,080
Granted Patent B2
US 12,317,080 · App. 18/027,913 · Granted May 27, 2025

Method and apparatus for detecting arbitrary account password reset logic vulnerability, and medium

Inventors: Yu Lou (Zhejiang, CN); Yuan Fan (Zhejiang, CN)
Assignee: DBAPPSECURITY CO., LTD
H04W12/12H04W12/033H04W12/61
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,317,080
App. No.
18/027,913
Granted
May 27, 2025
Kind
B2
Abstract

Disclosed are a method and apparatus for detecting a logic vulnerability allowing arbitrary password reset for an account, and a computer readable storage medium. The method includes: invoking a preset identification program to determine whether a request for a verification code is initiated in a to-be-detected webpage; obtaining, from a front-end page, a response packet sent in response to the request for a verification code, and determining whether there is a short message service (SMS) verification code in the response packet, on determining that a request for a verification code is initiated in the to-be-detected webpage; and; and determining that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that there is an SMS verification code in the response packet.

Claims (62)

1. A method for detecting a logic vulnerability allowing arbitrary password reset for an account, comprising:

invoking a preset identification program to determine whether a request for a verification code is initiated in a to-be-detected webpage;

obtaining, from a front-end page, a response packet sent in response to the request for a verification code, and determining whether there is a short message service (SMS) verification code in the response packet, on determining that a request for a verification code is initiated in the to-be-detected webpage;

determining that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that there is an SMS verification code in the response packet;

determining whether a request for password reset is initiated in the to-be-detected webpage, on determining that there is no SMS verification code in the response packet;

replacing first preset user information in the request for password reset with second preset user information, to update the request for password reset, on determining that a request for password reset is initiated in the to-be-detected webpage; and

determining whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, based on a first response to the updated request for password reset.

2. The method according to claim 1 , further comprising:

replacing an SMS verification code in the request for password reset with a random verification code, to update the request for password reset, on not receiving the first response; and

determining whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, based on a second response to the updated request for password reset.

3. The method according to claim 2 , further comprising:

determining whether the second response obtained within a preset time period; and

determining that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that the second response is not obtained within a preset time period.

4. The method according to claim 3 , further comprising:

determining a target random verification code corresponding to the second response, after obtaining the second response within the preset time period;

performing a password reset operation for a plurality of times by using the request for password reset corresponding to the target random verification code, to obtain a plurality of third responses; and

determining, based on the third responses, whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage.

5. The method according to claim 3 , wherein

at least one of the SMS verification code, the first preset user information, or the second preset user information is generated through a code receiving platform.

6. The method according to claim 1 , further comprising:

recording a time instant when it is determined that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage.

7. An apparatus for detecting a logic vulnerability allowing arbitrary password reset for an account, comprising:

a memory storing a computer program; and

a processor, wherein

the computer program, when executed by the processor, configures the apparatus to

invoke a preset identification program to determine whether a request for a verification code is initiated in a to-be-detected webpage;

obtain, from a front-end page, a response packet sent in response to the request for a verification code, and determine whether there is a short message service (SMS) verification code in the response packet, on determining that a request for a verification code is initiated in the to-be-detected webpage;

determine that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that there is an SMS verification code in the response packet;

determine whether a request for password reset is initiated in the to-be-detected webpage, on determining that there is no SMS verification code in the response packet;

replace first preset user information in the request for password reset with second preset user information, to update the request for password reset, on determining that a request for password reset is initiated in the to-be-detected webpage; and

determine whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, based on a first response to the updated request for password reset.

8. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, is configured to

invoke a preset identification program to determine whether a request for a verification code is initiated in a to-be-detected webpage;

obtain, from a front-end page, a response packet sent in response to the request for a verification code, and determine whether there is a short message service (SMS) verification code in the response packet, on determining that a request for a verification code is initiated in the to-be-detected webpage;

determine that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that there is an SMS verification code in the response packet;

determine whether a request for password reset is initiated in the to-be-detected webpage, on determining that there is no SMS verification code in the response packet;

replace first preset user information in the request for password reset with second preset user information, to update the request for password reset, on determining that a request for password reset is initiated in the to-be-detected webpage; and

determine whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, based on a first response to the updated request for password reset.

9. The apparatus according to claim 7 , further configured to:

replace an SMS verification code in the request for password reset with a random verification code, to update the request for password reset, on not receiving the first response; and

determine whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, based on a second response to the updated request for password reset.

10. The apparatus according to claim 9 , further configured to:

determine whether the second response is obtained within a preset time period; and

determine that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that the second response is not obtained within the preset time period.

11. The apparatus according to claim 10 , further configured to:

determine a target random verification code corresponding to the second response, after obtaining the second response within the preset time period;

perform a password reset operation for a plurality of times by using the request for password reset corresponding to the target random verification code, to obtain a plurality of third responses; and

determine, based on the third responses, whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage.

12. The apparatus according to claim 9 , further configured to:

record a time instant when it is determined that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage.

13. The computer-readable storage medium according to claim 8 , wherein the computer program, when executed by the processor, is further configured to:

replace an SMS verification code in the request for password reset with a random verification code, to update the request for password reset, on not receiving the first response; and

determine whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, based on a second response to the updated request for password reset.

14. The computer-readable storage medium according to claim 13 , wherein the computer program, when executed by the processor, is further configured to:

determine whether the second response is obtained within a preset time period; and

determine that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage, on determining that the second response is not obtained within the preset time period.

15. The computer-readable storage medium according to claim 14 , wherein the computer program, when executed by the processor, is further configured to:

determine a target random verification code corresponding to the second response, after obtaining the second response within the preset time period;

perform a password reset operation for a plurality of times by using the request for password reset corresponding to the target random verification code, to obtain a plurality of third responses; and

determine, based on the third responses, whether the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage.

16. The computer-readable storage medium according to claim 10 , wherein the computer program, when executed by the processor, is further configured to:

record a time instant when it is determined that the logic vulnerability allowing arbitrary password reset for an account exists in the to-be-detected webpage.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 23, 2023
From: LOU, YU; FAN, YUAN
To: DBAPPSECURITY CO., LTD
Reel/Frame 063085/0528 →
Priority Claims (1)
CN 202011002902.0 · Sep 22, 2020 · national
Continuity (1)
Related Publication 20230370846A1 · Nov 16, 2023
References Cited (14)
US 20140337957A1 · Feekes · 2014 [cited by examiner]
US 20150358306A1 · Adams et al. · 2015 [cited by applicant]
US 20180227288A1 · Zhu · 2018 [cited by examiner]
CN 107896218A · 2018 [cited by applicant]
CN 109246094A · 2019 [cited by applicant]
CN 109460661A · 2019 [cited by applicant]
CN 112165473A · 2021 [cited by applicant]
EP 3716564A1 · 2020 [cited by applicant]
WO 2019114784A1 · 2019 [cited by applicant]
International Search Report for PCT/CN2021/098852 mailed Sep. 8, 2021, ISA/CN. [cited by applicant]
Yangyangwithgnu, Arbitrary User Password Reset (six): There is a state parameter affecting subsequent logic in the answer, Fly Progress, CSDN Jun. 6, 2018, pp. 2,4-5. [cited by applicant]
Arthur Killer at Vulnerability Box Security Research Team, Analysis of Common Logic Vulnerabilities in Web Security Testing (Practical Part) , Aug. 31, 2016 (Aug. 31, 2016) pp. 1-4. [cited by applicant]
Chen Yi-fu, Research and Practice of Code Security Audit Method based on PHP, Communications TP-r.hnology vol. 53 No. 7 Jul. 2020. [cited by applicant]
Yangyangwithgnu, Random User Password Reset (3): User Confusion, Fly Progress, CSDN Jun. 5, 2018, pp. 4-5. [cited by applicant]