GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Java] CWE-552: Query to detect configuration file/source code exposure from unsafe request dispatcher · Issue #398 · github/securitylab

[Java] CWE-552: Query to detect configuration file/source code exposure from unsafe request dispatcher #398

New issue
Copy link
New issue
Copy link
Closed
Closed
[Java] CWE-552: Query to detect configuration file/source code exposure from unsafe request dispatcher#398
Copy link
Labels
All For OneSubmissions to the All for One, One for All bounty

Description

@luchua-bc
luchua-bc
opened on Jul 11, 2021
Issue body actions

Query

Link to pull request with your CodeQL query:

Relevant PR: github/codeql#6251

CVE ID(s)

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

Report

Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.

Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without validating the input can allow any web application resource such as configuration files and source code to be disclosed.

As stated in the Java API doc, when using a Java EE RequestDispatcher, requests may be dispatched to any part of the web application bypassing both implicit (no direct access to WEB-INF or META-INF) and explicit (defined by the web application) security constraints. Unsanitized user provided data must not be used to construct the path passed to the RequestDispatcher as it is very likely to create a security vulnerability in the application.

This query detects unsafe invocations of RequestDispatcher with user controlled input.

  • 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)

Provide at least one useful result found by your query, on some revision of a real project.

  • softways-sa/swift-framework
  • Online Drug Store

Activity

  1. luchua-bc
    added
    All For OneSubmissions to the All for One, One for All bounty
    on Jul 11, 2021
  2. luchua-bc
    changed the title [-][Java] CWE-522: Query to detect configuration file/source code exposure from unsafe request dispatcher[/-] [+][Java] CWE-552: Query to detect configuration file/source code exposure from unsafe request dispatcher[/+] on Jul 12, 2021
  3. pwntester commented on Sep 16, 2021

    @pwntester
    pwntester
    on Sep 16, 2021
    Contributor
    More actions

    Hi @luchua-bc Thanks for the contribution and sorry for the radio silence as you commented on github/codeql#6251 (comment) I think its better to close this PR and then open a new one when @haby0 one gets merged. Is that ok with you? if so, please close this PR.

  4. luchua-bc commented on Sep 16, 2021

    @luchua-bc
    luchua-bc
    on Sep 16, 2021
    Author
    More actions

    @pwntester Thanks for the suggestion. The @haby0 one hasn't received any update for two months therefore it took much longer than I originally thought. I"m OK with closing this one for the time being.

    Reacted by haby0
  5. luchua-bc
    closed this as completedon Sep 16, 2021
  6. ghsecuritylab commented on Sep 21, 2021

    @ghsecuritylab
    ghsecuritylab
    on Sep 21, 2021
    Collaborator
    More actions

    Your submission is now in status Closed.

    For information, the evaluation workflow is the following:
    SecLab review > Generate Query Results > FP Check > CodeQL review > SecLab finalize > Pay > Closed

  7. haby0 commented on Oct 28, 2021

    @haby0
    haby0
    on Oct 28, 2021
    More actions

    @pwntester I think he can open this pr, right? @luchua-bc

  8. pwntester commented on Oct 28, 2021

    @pwntester
    pwntester
    on Oct 28, 2021
    Contributor
    More actions

    @luchua-bc better create a new PR for it

  9. luchua-bc commented on Dec 2, 2021

    @luchua-bc
    luchua-bc
    on Dec 2, 2021
    Author
    More actions

    As per the advice of @pwntester, I've submitted a new PR #7286 to replace this one with a new issue #495

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    All For OneSubmissions to the All for One, One for All bounty

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.