Open Aadithya-J opened 3 months ago
Hello Aadithya-J, Thanks for opening an issue, your contribution is valuable to us. The maintainers will review this issue and provide feedback as soon as possible.
I would like to work on this myself using the api of hCaptcha or reCaptcha. Can you assign this to me under gssoc 24.
Thank you for pointing out this security concern. It's crucial that our captcha system is robust enough to prevent bot attacks. The current text-based captcha system indeed seems to have a vulnerability as it can be viewed by inspecting the webpage. We will prioritize addressing this issue and consider implementing a more secure captcha system, such as image-based or interactive captchas. Your vigilance in ensuring the security of our website is greatly appreciated.
@thestarsahil how are you using the environment variables it seems like npm cannot resolve vite-plugin-dotenv. i have to use .env for the sitekey and secret key for reCaptcha.
@thestarsahil how are you using the environment variables it seems like npm cannot resolve vite-plugin-dotenv. i have to use .env for the sitekey and secret key for reCaptcha.
Hey, if you are facing issues with .env file
Try to make a .env file in the root directory of the project
Then add environment secrets in CAPS EXAMPLE ''' VITE_SECRET = abc '''
And now you are ready to import it from your vite app ''' import.meta.env.VITE_SECRET '''
Note : VITE_... is important to write in the beginning of each env variable
Just ping me if you could not fix it
Thank you, I managed to make it work, but it seems that implementing hCaptcha or reCaptcha v2 requires backend . I'm not sure what i should do.
Hi @Aadithya-J I would like to work on this issue.
@Pranali3103 Please give clear idea on how you will work on this ?
Yeah sure
I'll use two approaches : 1)Move CAPTCHA Generation to the Server: Generate the CAPTCHA on the server-side and send it to the client. so that , client never has the generation logic or the CAPTCHA value itself. 2)Hash and Compare CAPTCHA on the Server: Store a hashed version of the CAPTCHA text on the server and compare the user input with the hashed value to verify correctness. using sha-512 algorithm or any other hashing algorithm
Can you please assign me this.
You then need to set up the server as well and remove unnecessary files from there
@thestarsahil Please assign @Pranali3103
I could not find the backend part of login ?
Okay I'll make the server side and work on files likewise .
@Pranali3103 Good to go !
I have added done changes ,please review it
Is your feature request related to a problem? Please describe. The captcha in the sign up page is simple text. It can viewed just by inspecting the webpage. This makes to website vulnerable to bot attacks.
Describe the solution you'd like I would like to change it to using a captcha api like hcaptcha or reCaptcha.