Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed image paths #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/solution/a1-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ There is a SQL Injection in `User Search` feature at the following URL
http://127.0.0.1:9090/app/usersearch

By injecting a single quote `'`, we see an error has occurred.
![sqli1](/resources/sqli1.png "SQLi Trigger")
![sqli1](../resources/sqli1.png "SQLi Trigger")

An attacker can exploit this further and obtain potentially sensitive information from the database by supplying the input `' UNION SELECT password,1 from Users where login='user' -- //`
![sqli2](/resources/sqli2.png "Exploiting SQLi")
![sqli2](../resources/sqli2.png "Exploiting SQLi")

**Vulnerable Code snippet**

Expand Down Expand Up @@ -58,7 +58,7 @@ http://127.0.0.1:9090/app/ping


By injecting `x ; id`, we are able to see that the `id` command has been executed.
![ci1](/resources/ci1.png "Command injection")
![ci1](../resources/ci1.png "Command injection")

**Vulnerable Code snippet**

Expand Down Expand Up @@ -104,4 +104,4 @@ The fix has been implemented in this [commit](https://github.com/appsecco/dvna/c

- <https://www.owasp.org/index.php/Top_10-2017_A1-Injection>
- <https://snyk.io/blog/sql-injection-orm-vulnerabilities/>
- <https://hackernoon.com/nodejs-security-issue-javascript-node-example-tutorial-vulnerabilities-hack-line-url-command-injection-412011924d1b>
- <https://hackernoon.com/nodejs-security-issue-javascript-node-example-tutorial-vulnerabilities-hack-line-url-command-injection-412011924d1b>