You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get started, please follow the 🛠️ [set up guide](#setup-guide) (if you haven't already).
4
+
Refer to the [Hints](#hints) for helpful information and [Tasks](#time-to-start) to head to the challenge directly.
5
+
6
+
## Overview
7
+
This program validates transactions in systems where orders consist of multiple items and payments. It ensures that the financial records are consistent and highlights any discrepancies.
8
+
9
+
## 📝 Storyline
10
+
In another part of the world, a quaint local bookstore was buzzing with excitement as the annual Book Fair approached. Eager to expand their reach, they hastily launched an online platform, hoping to attract book lovers far and wide. However, in their rush, they overlooked critical security measures, leaving their website vulnerable. Now, with hackers lurking in the shadows, the fate of their online store hangs in the balance. Can you uncover and fix the vulnerabilities before it's too late?
11
+
12
+
## ⌨️ What's in the repo?
13
+
For each level, you will find the same file structure:
14
+
-`src/` includes the vulnerable code to be reviewed.
15
+
-`tests/` contains the unit tests that should still pass after you have implemented your fix.
16
+
17
+
## 🚦 Time to start!
18
+
-[ ] Observe the **Github Workflow** logs, and identify the failing test cases.
19
+
-[ ] Open a new **Github Issue** to address the problem and your observations.
20
+
-[ ] Create a new **Git Branch** and work on the fix.
21
+
1. Review the code in `src/main.py`. Can you spot the bug(s)?
22
+
2. Try to fix the bug(s). Ensure that unit tests are still passing 🟢.
23
+
-[ ] Make a new **Pull Request** with a description of what you fixed.
24
+
-[ ] Observe the GitHub Workflow logs, and ensure that the code is error free.
25
+
-[ ] Once all workflows pass, **merge** the pull request.
26
+
27
+
> [!NOTE]
28
+
> You successfully completed the level when the Github Workflow passes 🟢.
29
+
30
+
## 💡 Hints
31
+
The program currently has vulnerabilities related to floating-point arithmetic. Pay close attention to how decimal values are handled during transaction validation.
32
+
33
+
<!-- Additional hints will be provided if needed -->
0 commit comments