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

Fix Authenticated Unrestricted File Write in letter.php #1571

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

realJema
Copy link

@realJema realJema commented Mar 17, 2020

Fixes #1213

@realJema realJema changed the title Fix issue #1213 Authenitcation_on_file_creation Mar 17, 2020
@realJema realJema changed the title Authenitcation_on_file_creation Authenitcation on file creation in letter.py Mar 17, 2020
@robbyoconnor robbyoconnor changed the title Authenitcation on file creation in letter.py Authentcation on file creation in letter.py Mar 18, 2020
@robbyoconnor robbyoconnor changed the title Authentcation on file creation in letter.py Authentcation on file creation in letter.php Mar 18, 2020
@robbyoconnor robbyoconnor changed the title Authentcation on file creation in letter.php Fix Authenticated Unrestricted File Write in letter.php Mar 18, 2020
@robbyoconnor robbyoconnor added GSoC 2020 Web Security White Hat Reports, Cross Site SQL Injection, etc labels Mar 18, 2020
@robbyoconnor
Copy link
Member

On first glance this looks good -- gonna test this.

@muarachmann
Copy link
Member

Should do at a bear minimum, can you use csrf token stuffs to further validate the forms. Consider writing you own class or something of the sort. I think this will be used for every form henceforth. That way requests are ensured.

robbyoconnor
robbyoconnor approved these changes Mar 31, 2020
@robbyoconnor robbyoconnor self-requested a review March 31, 2020 02:26
@robbyoconnor
Copy link
Member

Should do at a bear minimum, can you use csrf token stuffs to further validate the forms. Consider writing you own class or something of the sort. I think this will be used for every form henceforth. That way requests are ensured.

@realJema -- we really need to do this. This is still vulnerable. You're trading one vulnerability for another here.

Copy link
Member

@robbyoconnor robbyoconnor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments.

@robbyoconnor
Copy link
Member

This is the attack that you traded for: https://owasp.org/www-community/attacks/csrf

@realJema
Copy link
Author

Should do at a bear minimum, can you use csrf token stuffs to further validate the forms. Consider writing you own class or something of the sort. I think this will be used for every form henceforth. That way requests are ensured.

@realJema -- we really need to do this. This is still vulnerable. You're trading one vulnerability for another here.

ok, let me update the fix.

@aethelwulffe
Copy link
Contributor

aethelwulffe commented Mar 31, 2020 via email

@muarachmann
Copy link
Member

muarachmann commented Mar 31, 2020 via email

@robbyoconnor
Copy link
Member

You need to address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes Requested GSoC 2020 Web Security White Hat Reports, Cross Site SQL Injection, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Authenticated Unrestricted File Write in letter.php
4 participants