# Business Logic

## Explanation

This entire topic is all about exploiting logic flaws within a website's code due to **flawed assumptions** about the user.

This vulnerability allows attackers to manipulate an application to elicit unintended behaviour, and they are typically caused from failure to anticipate unusual application states. I feel that these kinda of vulnerabilities are a result of developers not knowing that an attacker can even manipulate their application in that way.

One example of a logic flaw would be setting money to a negative number, thereby 'adding' money.

In general, just mess around with an application, change numbers to strings, positive integers to negative ones, and see what happens!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rouvin.gitbook.io/ibreakstuff/websec/business-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
