Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Fix: A3 XSS Attack#300

Open
maytlead wants to merge16 commits intoOWASP:master
base:master
Choose a base branch
Loading
frommaytlead:fix/A3
Open

Fix: A3 XSS Attack#300

maytlead wants to merge16 commits intoOWASP:masterfrommaytlead:fix/A3

Conversation

maytlead
Copy link

  • Make cookie only accessible via http to prevent XSS attack
  • Run the server as https
  • Enable autoescape for XSS

maytleadand others added16 commitsOctober 24, 2023 16:57
- Remove all eval functions in converting the user inputs- Convert eval to parseInt
- Remove direct using of request data- Add the validation to request data
- Remove direct use user input in logging- Log out the encoded logging context
- Change input type number
- Use hashed password for seeding the data- Before saving the password, hash it- Compare the password with hash method
- Add password protection using length, complexity
- Regenerating the session whenever the user log in
- Use idential error message for both username and password to not expose  what is wrong to the attacker
Fix: A2-2 Password Protection
- Make cookie only accessible via http to prevent XSS attack
- Run the server as https
- Enable autoescape for XSS
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@maytlead

[8]ページ先頭

©2009-2025 Movatter.jp