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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 28, 2019 in Data Center

Two free email courses to help you “level up” your enterprise strategy

  Hey Atlassian Community! Scaling. Growth. Innovation. These are topics that play on repeat for any enterprise organization. As your organization grows and tools become increasingly mission-c...

121 views 0 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you