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

product_type parameter in admin is not validated properly #69

Closed
zcwilt opened this issue Jul 9, 2014 · 4 comments
Closed

product_type parameter in admin is not validated properly #69

zcwilt opened this issue Jul 9, 2014 · 4 comments
Assignees
Milestone

Comments

@zcwilt
Copy link
Member

zcwilt commented Jul 9, 2014

if the GET parameter for product_type is altered to use an out of range value, the code still does the look up but returns a blank hander name. It then attempts to load product handler code based on an incorrect path.

@zcwilt zcwilt added bug labels Jul 9, 2014
@zcwilt zcwilt added this to the v1.6.0 milestone Jul 9, 2014
@zcwilt
Copy link
Member Author

zcwilt commented Jul 11, 2014

Why/where are $_GET params being modified? This is a bigger issue: Encapsulating these globals into a class helps prevent modification and improves quality by providing sanitization and validation. See Aura.Web Request https://github.com/auraphp/Aura.Web/blob/develop-2/README-REQUEST.md (esp. Values.php https://github.com/auraphp/Aura.Web/blob/develop-2/src/Request/Values.php).

The Aura library components are completely decoupled and designed to be drop-in enhancements to legacy projects like ZC to help get them up-to-date. Paul M. Jones http://paul-m-jones.com/ built it and I highly recommend leveraging his library here. Addressing this issue would be a great place to start.

@texdc I think you misunderstand, I was referring to the parameter being changed in the URL, not being modified by code,
Background is that code is pen tested by PA-DSS QSA, automated scanning will manipulate GET/POST params to attempt exploits (XSS/XSRF/SQLi etc). The fact that manipulation of this parameter causes unexpected behaviour can trigger false positives in the pen test.

@scottcwilson
Copy link
Sponsor Contributor

@zcwilt I have looked through the code and don't see anywhere that this is happening - can you give me the URL that triggered the FP?

@zcwilt
Copy link
Member Author

zcwilt commented Oct 5, 2015

Let me take a look again. It maybe it was fixed as part of our last PA-DSS round.

@zcwilt
Copy link
Member Author

zcwilt commented Oct 5, 2015

@zcwilt zcwilt closed this as completed in b7a2fc1 Oct 8, 2015
zcwilt added a commit that referenced this issue Oct 8, 2015
Fixes #69 Guard against modifying product type in URL
@zcwilt zcwilt removed the in progress label Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants