NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Exploitation Fundamentals
Build an understanding of security testing and how to document a finding. The rooms cover tool concepts, SQL injection,
ViewActive Directory Attacks
A comprehensive, advanced learning path covering the core methodologies of Active Directory exploitation. Progress from
ViewWeb Application Security
A comprehensive learning path covering the most critical web application vulnerabilities beyond basic injection. Progres
ViewWireless Networking Fundamentals
This module introduces the foundational concepts of wireless networking. You will learn how Radio Frequency (RF) physics
ViewPreview · 35 min
Why a rule that holds for one request at a time can fail when two requests read the same state, and how to spot the pattern in a code excerpt.
Priya Raman's rule BR7 says that the credit notes on an invoice never add up to more than the invoice. Ledgerline invoice inv_5514 is for 10000 pence, which is GBP 100.00, so one credit note of 7500 is fine and a second one of 7500 must be refused with 422 credit_exceeds_total. The handler that Owen Adeyemi shared this morning does look up what has already been credited, compare it with the total, and only then write the new row. Read line by line, it is correct.
The trouble is that a server does not handle one request at a time. Several application instances and many database connections are working at once, and the rule is a statement about all of their writes together. A check that was true when it was made can be out of date by the time the code acts on it. Release 2.6.0 added credit notes on Monday, so this is new code that no earlier week of the assessment has seen.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in