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

Added Base64 Support in Query String and Request Path #701

Merged
merged 9 commits into from
Dec 7, 2023

Conversation

iamnoooob
Copy link
Contributor

Closes #685

bl13pbl03p and others added 9 commits August 27, 2023 21:58
Minor change, changed 'Goolgle' to Google
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
…overy#683)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.17.0.
- [Commits](golang/net@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
lastIndex := strings.LastIndex(req.URL.Path, "/")

decodedBytes, _ := base64.StdEncoding.DecodeString(req.URL.Path[firstindex+10:lastIndex])
_, _ = w.Write(decodedBytes)

Check warning

Code scanning / CodeQL

Reflected cross-site scripting

Cross-site scripting vulnerability due to [user-provided value](1).

if b64_body := values.Get("b64_body"); b64_body != "" {
decodedBytes, _ := base64.StdEncoding.DecodeString(string([]byte(b64_body)))
_, _ = w.Write(decodedBytes)

Check warning

Code scanning / CodeQL

Reflected cross-site scripting

Cross-site scripting vulnerability due to [user-provided value](1).
@ehsandeep ehsandeep merged commit 59aafc8 into projectdiscovery:dev Dec 7, 2023
@ehsandeep ehsandeep linked an issue Dec 7, 2023 that may be closed by this pull request
@ehsandeep ehsandeep added the Type: Enhancement Most issues will probably ask for additions or changes. label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

b64_body query support to dynamic response
5 participants