It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

BitBucket- Often Misused: HTTP Method Override Edited

During our hardening process of our BitBucket Data Center our Security scanning tool complaining about the  REST API that is exposing PUT functions.

 

Attack Request:

POST /account?_method=PUT HTTP/1.1
Referer: https://<<BB URL>>...TRUNCATED...
Report Date: 1/24/2019 3

Attack Response:
HTTP/1.1 200
Date: Wed, 23 Jan 2019 17:17:21 GMT
Content-Typ...TRUNCATED...

File Names: https://<<BB-URL>>:443/account?_method=PUT

Summary:

In order to protect access to various resources, web servers may be configured to prevent the usage of specific HTTP verbs.
However, some web frameworks provide a way to override the HTTP method in the request by supplying specific HTTP
request headers. This feature is typically used when a web or proxy server restricts certain verbs, but the application needs to
use them, especially in RESTful services. It is possible for a malicious user to take advantage of this feature to bypass HTTP
verbs restrictions implemented on a server. Doing so may allow the attacker to perform unintended actions on protected
resources in the web application.

Execution:

The attack request uses a trusted HTTP verb such as GET or POST, but adds request headers such as X-HTTP-Method, XHTTP-
Method-Override, X-Method-Override, or a query parameter such as _method to provide a restricted verb such as PUT
or DELETE. Such a request is interpreted by the target application using the verb in the request header instead of the actual
HTTP verb.

Implication:

Attackers may leverage this vulnerability to add, edit or delete protected resources on the server-side of a web application.

 

 

Anyway we can make this secure and disable the use of verb tunneling using such headers or query parameter?  Any help from Atlassian team or security experts will be appreciated.

 

Thanks,

Jay

 

1 answer

Hello Atlassian Team,

I am still not able to create ticket and need help with Bitbucket security scan.  Please help create ticket for above issue/question.

 

If you need details on who others are having support creation issue go to: https://community.atlassian.com/t5/Confluence-discussions/Can-t-contact-Atlassian-Support/td-p/726938 

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked in Data Center

Upcoming AMA: How to plan ahead for Data Center - Expert advice from an Atlassian panel

Hi! I'm Jacob Shepard a Product Marketing Manager on Atlassian’s Enterprise Team. We know that moving to Data Center is no small task. To do so effectively demands extensive planning and a team effor...

2,774 views 3 19
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you