Visitar URL original
[javascript] CWE-614: CodeQL query to detect if cookies are sent without the flag secure being set · Issue #169 · github/securitylab · GitHub
The Wayback Machine - https://web.archive.org/web/20221004160845/https://github.com/github/securitylab/issues/169
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

[javascript] CWE-614: CodeQL query to detect if cookies are sent without the flag secure being set #169

Closed
1 task done
dellalibera opened this issue Aug 29, 2020 · 6 comments
Labels
All For One Submissions to the All for One, One for All bounty

Comments

@dellalibera
Copy link

dellalibera commented Aug 29, 2020 •

CVE ID(s)

List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.

  • There is no CVE for this.

Report

Failing to set the secure flag on a cookie can cause it to be sent in clear text. This makes it easier for an attacker to intercept and read the cookie.

Query to detect if the secure flag is set to cookies is available in java query but it is not available in JavaScript query.
This query detects if cookies are sent without the flag secure being set or with the flag secure being set to false.

Link to the merged PR: PR github/codeql#3978

  • Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc). We would love to have you spread the word about the good work you are doing

Result(s)

The query was able to detect the following issues (now fixed):

Issue Fix
ibm-dotcom-library/packages/utilities/src/utilities/ipcinfoCookie/ipcinfoCookie.js#L59 ibm-dotcom-library/packages/utilities/src/utilities/ipcinfoCookie/ipcinfoCookie.js#L72
urly/server/routes/login.js#L32 urly/server/routes/login.js#L54
@dellalibera dellalibera added the All For One Submissions to the All for One, One for All bounty label Aug 29, 2020
@ghsecuritylab
Copy link
Collaborator

ghsecuritylab commented Nov 10, 2020

Your submission is now in status SecLab review.

For information, the evaluation workflow is the following:
CodeQL initial assessment > SecLab review > CodeQL review > SecLab finalize > Pay > Closed

@ghsecuritylab
Copy link
Collaborator

ghsecuritylab commented Nov 10, 2020

Your submission is now in status CodeQL review.

For information, the evaluation workflow is the following:
CodeQL initial assessment > SecLab review > CodeQL review > SecLab finalize > Pay > Closed

@ghsecuritylab
Copy link
Collaborator

ghsecuritylab commented Dec 7, 2020

Your submission is now in status SecLab finalize.

For information, the evaluation workflow is the following:
CodeQL initial assessment > SecLab review > CodeQL review > SecLab finalize > Pay > Closed

@ghsecuritylab
Copy link
Collaborator

ghsecuritylab commented Dec 7, 2020

Your submission is now in status Pay.

For information, the evaluation workflow is the following:
CodeQL initial assessment > SecLab review > CodeQL review > SecLab finalize > Pay > Closed

@ghsecuritylab
Copy link
Collaborator

ghsecuritylab commented Dec 7, 2020

Your submission is now in status Closed.

For information, the evaluation workflow is the following:
CodeQL initial assessment > SecLab review > CodeQL review > SecLab finalize > Pay > Closed

@xcorail
Copy link
Contributor

xcorail commented Dec 7, 2020

Created Hackerone report 1053048 for bounty 263366 : [169] [javascript] CWE-614: CodeQL query to detect if cookies are sent without the flag secure being set

@xcorail xcorail closed this as completed Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
All For One Submissions to the All for One, One for All bounty
Projects
None yet
Development

No branches or pull requests

3 participants