question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix request: Request without GET or POST

See original GitHub issue

Greetings,

We are researchers and we are have identified insecure coding patterns and configurations in the microservice architecture repositories. In your repository, we have found instances of @RequestMapping" methods without POST or GET . According to the Common Weakness Enumeration and JAVA OWASP, this is a security weakness and needs to be avoided.

We request for a fix for this issue. Looking forward for your feedback.

Source:

https://github.com/ewolff/microservice/blob/fd8fd5ef6afaa5be4b5f81e8972474917002d727/microservice-demo/microservice-demo-catalog/src/main/java/com/ewolff/microservice/catalog/web/CatalogController.java#L25

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ewolffcommented, Jul 8, 2020

Actually you are right. Without method POST and GET are both executed.

1reaction
akondasifcommented, Jul 6, 2020

@ewolff

Our pleasure. As future work, we are planning to automatically repair these instances so that it is less work for for developers … any feedback on how we can do that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Request Methods – Get vs Put vs Post Explained with ...
In this article, we'll be discussing the get, put, and post HTTP methods. You'll learn what each HTTP method is used for as...
Read more >
forms - When should I use GET or POST method? What's the ...
" A POST request gets input from the query string and through the request body." IMHO this is incorrect. To use either input...
Read more >
Why is my browser sending an OPTIONS HTTP request ...
As you can see, the POST method is never sent and only a method called OPTIONS is sent to the endpoint. The response...
Read more >
REST API using POST instead of GET - Tree Web Solutions
REST API using POST instead of GET. You can't use the API using POST or GET if they are not build to call...
Read more >
How to Fix Request Method 'POST' Not Supported - Hyperping
The Request Method' POST' Not Supported error is caused by a mismatch of the web browser configuration and the browser's URL format. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found